Commit 4d235eee authored by Adam Simpkins's avatar Adam Simpkins Committed by Facebook GitHub Bot

update farmhash.cpp to avoid an unused function error on android

Summary:
The `Fetch128()` function is only used in `#ifdef` sections that check for
either `can_use_sse42` or `can_use_sse41 && x86_64`.  On Android builds this
function was defined as a static function that was never used, causing
compiler errors when compiled with `-Werror -Wunused-function`

Reviewed By: mzlee

Differential Revision: D26865431

fbshipit-source-id: 5cd7ce12aa614f3d904df40ba21842223502a9ec
parent e85a11d5
...@@ -351,7 +351,7 @@ STATIC_INLINE uint64_t Rotate64(uint64_t val, int shift) { ...@@ -351,7 +351,7 @@ STATIC_INLINE uint64_t Rotate64(uint64_t val, int shift) {
#define can_use_avx 0 #define can_use_avx 0
#endif #endif
#if can_use_ssse3 || can_use_sse41 || can_use_sse42 || can_use_aesni || can_use_avx #if can_use_sse42 || (can_use_sse41 && x86_64)
STATIC_INLINE __m128i Fetch128(const char* s) { STATIC_INLINE __m128i Fetch128(const char* s) {
return _mm_loadu_si128(reinterpret_cast<const __m128i*>(s)); return _mm_loadu_si128(reinterpret_cast<const __m128i*>(s));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment