From: Brian Pane Date: Sat, 18 Jan 2014 01:09:01 +0000 (-0800) Subject: Enable the __builtin_ia32_crc* acceleration functions for gcc-4.7 X-Git-Tag: v0.22.0~727 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=18bedc2337227ea846e2269dc166dbcee686a111;p=folly.git 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 --- 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,