X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=crc%2Fcrc32c.h;h=596fd6c56a98f835933ee68c17b1e845e0309a7d;hb=e18941aab394d4a68df10379fec7184b52f95b3f;hp=cf1713692b76e82efeb516740d0a1275875c70d1;hpb=3845591fadea480177223e28c9d1c03642d34f0e;p=fio.git diff --git a/crc/crc32c.h b/crc/crc32c.h index cf171369..596fd6c5 100644 --- a/crc/crc32c.h +++ b/crc/crc32c.h @@ -18,7 +18,19 @@ #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