| Index: media/base/simd/convert_yuv_to_rgb_x86.cc
|
| diff --git a/media/base/simd/convert_yuv_to_rgb_x86.cc b/media/base/simd/convert_yuv_to_rgb_x86.cc
|
| index 3825bdb7a0e16f938636cc7e1f5bdd1b2f4ca8ed..fd55a773ef2720345d48ea24e61d65859cfd5229 100644
|
| --- a/media/base/simd/convert_yuv_to_rgb_x86.cc
|
| +++ b/media/base/simd/convert_yuv_to_rgb_x86.cc
|
| @@ -9,6 +9,7 @@
|
| #endif
|
|
|
| #include "media/base/simd/convert_yuv_to_rgb.h"
|
| +#include "media/base/simd/empty_register_state.h"
|
| #include "media/base/yuv_convert.h"
|
|
|
| namespace media {
|
| @@ -37,7 +38,11 @@ void ConvertYUVToRGB32_MMX(const uint8* yplane,
|
| width);
|
| }
|
|
|
| +#if defined(MEDIA_DO_NOT_USE_MMX_INTRINSICS)
|
| + EmptyRegisterState_MMX();
|
| +#else
|
| _mm_empty();
|
| +#endif // defined(MEDIA_DO_NOT_USE_MMX_INTRINSICS)
|
| }
|
|
|
| void ConvertYUVToRGB32_SSE(const uint8* yplane,
|
| @@ -64,7 +69,11 @@ void ConvertYUVToRGB32_SSE(const uint8* yplane,
|
| width);
|
| }
|
|
|
| +#if defined(MEDIA_DO_NOT_USE_MMX_INTRINSICS)
|
| + EmptyRegisterState_MMX();
|
| +#else
|
| _mm_empty();
|
| +#endif // defined(MEDIA_DO_NOT_USE_MMX_INTRINSICS)
|
| }
|
|
|
| } // namespace media
|
|
|