Be more careful when using SSE intrinsics.
[folly.git] / folly / Range.h
index cabd9078ed038d3b560f85cab6b3b838e12d6597..6925c6d44f1f4be6a5b7ba54f2025fe7990e684f 100644 (file)
@@ -628,7 +628,7 @@ namespace detail {
 size_t qfind_first_byte_of_nosse(const StringPiece& haystack,
                                  const StringPiece& needles);
 
-#if FOLLY_HAVE_EMMINTRIN_H
+#if FOLLY_HAVE_EMMINTRIN_H && __GNUC_PREREQ(4, 6)
 size_t qfind_first_byte_of_sse42(const StringPiece& haystack,
                                  const StringPiece& needles);