From 18bedc2337227ea846e2269dc166dbcee686a111 Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Fri, 17 Jan 2014 17:09:01 -0800 Subject: [PATCH] Enable the __builtin_ia32_crc* acceleration functions for gcc-4.7 Summary: Adjusted the ifdefs to allow the use of the hardware CRC instructions when compiling with gcc-4.7.x Test Plan: Built with gcc-4.7.1, ran the unit tests, verified that they ran the hardware-accelerated code path Reviewed By: saramg@fb.com FB internal diff: D1134567 --- folly/Checksum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Checksum.cpp b/folly/Checksum.cpp index 56e211d6..28ed8392 100644 --- a/folly/Checksum.cpp +++ b/folly/Checksum.cpp @@ -25,7 +25,7 @@ namespace folly { namespace detail { #if defined(__x86_64__) && defined(__GNUC__) && defined(__GNUC_MINOR__) && \ - (((__GNUC__ * 100) + __GNUC_MINOR__) >= 408) + (((__GNUC__ * 100) + __GNUC_MINOR__) >= 407) // Fast SIMD implementation of CRC-32C for x86 with SSE 4.2 uint32_t crc32c_hw(const uint8_t *data, size_t nbytes, -- 2.34.1