A few fixes for 32-bit compiles
[fio.git] / crc / crc32c.h
index 1498db91a4d072ec77d2ec9ef488b81bd861c1ba..596fd6c56a98f835933ee68c17b1e845e0309a7d 100644 (file)
 #ifndef CRC32C_H
 #define CRC32C_H
 
+#include "../arch/arch.h"
+
 extern uint32_t crc32c(unsigned char const *, unsigned long);
 
+#ifdef ARCH_HAVE_SSE4_2
+extern uint32_t crc32c_intel(unsigned char const *, unsigned long);
+extern int crc32c_intel_works(void);
+#else
+#define crc32c_intel crc32c
+static inline int crc32c_intel_works(void)
+{
+       return 0;
+}
+#endif
+
 #endif