Merge branch 'master' of ssh://brick.kernel.dk/data/git/fio
[fio.git] / crc / crc32c.h
index 0976261ac61832a9b36e1ab50a93b6c59b60d8f7..596fd6c56a98f835933ee68c17b1e845e0309a7d 100644 (file)
 
 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
 #define crc32c_intel crc32c
+static inline int crc32c_intel_works(void)
+{
+       return 0;
+}
 #endif
 
 #endif