summaryrefslogtreecommitdiff
path: root/crc
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2010-10-21 08:15:59 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-10-21 08:15:59 +0200
commit2f68124f26e54233db41b462a257dabc48e5c32b (patch)
tree19bd597e4968c8fbc80fe67f36dab4f9bb67a42a /crc
parent5e0baa7f423995c4f75070d6a2ee56619e195a36 (diff)
A few fixes for 32-bit compiles
- Change the HAVE_SSE to HAVE_SSE4_2 and only provide it on x86-64. - Cast two values that otherwise cause the compiler to warn on 32-bit Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'crc')
-rw-r--r--crc/crc32c-intel.c2
-rw-r--r--crc/crc32c.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/crc/crc32c-intel.c b/crc/crc32c-intel.c
index 77d6df4..969a037 100644
--- a/crc/crc32c-intel.c
+++ b/crc/crc32c-intel.c
@@ -18,7 +18,7 @@
* Volume 2A: Instruction Set Reference, A-M
*/
-#ifdef ARCH_HAVE_SSE
+#ifdef ARCH_HAVE_SSE4_2
#if BITS_PER_LONG == 64
#define REX_PRE "0x48, "
diff --git a/crc/crc32c.h b/crc/crc32c.h
index 50f3665..596fd6c 100644
--- a/crc/crc32c.h
+++ b/crc/crc32c.h
@@ -22,7 +22,7 @@
extern uint32_t crc32c(unsigned char const *, unsigned long);
-#ifdef ARCH_HAVE_SSE
+#ifdef ARCH_HAVE_SSE4_2
extern uint32_t crc32c_intel(unsigned char const *, unsigned long);
extern int crc32c_intel_works(void);
#else