A few fixes for 32-bit compiles
[fio.git] / crc / crc32c.h
index cf1713692b76e82efeb516740d0a1275875c70d1..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