Index: src/opts/SkBlitRow_opts_SSE4.cpp |
diff --git a/src/opts/SkBlitRow_opts_SSE4.cpp b/src/opts/SkBlitRow_opts_SSE4.cpp |
index 7afb1e78e835cacb51ccf45c39c3640e303a06f0..e5d880904e03ae58369ff23d9d6ff55e09c290ce 100644 |
--- a/src/opts/SkBlitRow_opts_SSE4.cpp |
+++ b/src/opts/SkBlitRow_opts_SSE4.cpp |
@@ -6,6 +6,17 @@ |
*/ |
#include "SkBlitRow_opts_SSE4.h" |
+ |
+// Some compilers can't compile SSSE3 or SSE4 intrinsics. We give them stub methods. |
+// The stubs should never be called, so we make them crash just to confirm that. |
+#if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_SSE41 |
+void S32A_Opaque_BlitRow32_SSE4(SkPMColor* SK_RESTRICT, const SkPMColor* SK_RESTRICT, int, U8CPU) { |
+ sk_throw(); |
+} |
+ |
+#else |
+ |
+#include <smmintrin.h> // SSE4.1 intrinsics |
#include "SkColorPriv.h" |
#include "SkColor_opts_SSE2.h" |
#include "SkMSAN.h" |
@@ -59,3 +70,5 @@ |
} |
} |
} |
+ |
+#endif |