pre_read fixes
[fio.git] / crc / crc32c-intel.c
index c0abe73ad7a85ac5bb794f3e50b6137b796391df..cec5ad5dec9d5d88ec7498133f2915ae0c1bd146 100644 (file)
@@ -1,4 +1,5 @@
 #include <inttypes.h>
+#include "crc32c.h"
 
 /*
  * Based on a posting to lkml by Austin Zhang <austin.zhang@intel.com>
@@ -11,6 +12,8 @@
  * Volume 2A: Instruction Set Reference, A-M
  */
 
+#ifdef ARCH_HAVE_SSE
+
 #if BITS_PER_LONG == 64
 #define REX_PRE "0x48, "
 #define SCALE_F 8
@@ -64,3 +67,6 @@ uint32_t crc32c_intel(unsigned char const *data, unsigned long length)
 
        return crc;
 }
+
+#endif /* ARCH_HAVE_SSE */
+