Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(983)

Unified Diff: media/base/simd/convert_yuv_to_rgb_x86.cc

Issue 12082087: Replace or exclude MMX intrinsics in yuv_convert_simd_x86 due to lack of VS2010 support for them in… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix readability nit Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/simd/empty_register_state.h » ('j') | media/base/yuv_convert.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | media/base/simd/empty_register_state.h » ('j') | media/base/yuv_convert.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698