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

Unified Diff: media/base/yuv_row.h

Issue 213034: Revert "Mac YUV assembly" (Closed)
Patch Set: Created 11 years, 3 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/yuv_row_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/yuv_row.h
diff --git a/media/base/yuv_row.h b/media/base/yuv_row.h
index 37bd935a0e4a599c7da5a53eef3a000da3080b71..104b9c7780879e9977e2f5afe562210daaf64875 100644
--- a/media/base/yuv_row.h
+++ b/media/base/yuv_row.h
@@ -63,8 +63,9 @@ void ScaleYUVToRGB32Row(const uint8* y_buf,
} // extern "C"
#if !defined(USE_MMX)
-// Windows, Mac and Linux x86 use MMX; x64 and other CPUs do not.
-#if defined(OS_WIN) || defined(ARCH_CPU_X86)
+#if defined(_MSC_VER)
+#define USE_MMX 1
+#elif defined(OS_LINUX) && defined(ARCH_CPU_X86)
#define USE_MMX 1
#else
#define USE_MMX 0
« no previous file with comments | « no previous file | media/base/yuv_row_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698