City.cpp/h was using the _mm_crc32_u64 intrinsic, which is only supported on x64 platforms - see https://bugs.gentoo.org/show_bug.cgi?id=459126 for details.
git-svn-id: http://smhasher.googlecode.com/svn/trunk@148 77a7d1d3-4c08-bdc2-d393-d5859734b01a
diff --git a/City.cpp b/City.cpp
index 4d70dd2..d7c33bc 100644
--- a/City.cpp
+++ b/City.cpp
@@ -351,7 +351,7 @@
}
}
-#ifdef __SSE4_2__
+#if defined(__SSE4_2__) && defined(__x86_64__)
#include <nmmintrin.h>
// Requires len >= 240.
diff --git a/City.h b/City.h
index fe2d3e2..c12c1bb 100644
--- a/City.h
+++ b/City.h
@@ -90,7 +90,7 @@
// Conditionally include declarations for versions of City that require SSE4.2
// instructions to be available.
-#ifdef __SSE4_2__
+#if defined(__SSE4_2__) && defined(__x86_64__)
// Hash function for a byte array.
uint128 CityHashCrc128(const char *s, size_t len);