X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=crc%2Fcrc32c.h;h=50f3665f39375ddc4a8c4d6c7888930a13dcdda6;hb=0dd2d11ea010566fd2bc2661af58a0eefe49f750;hp=1498db91a4d072ec77d2ec9ef488b81bd861c1ba;hpb=bac39e0e8807a1d52863ad8304e67221df2bc63b;p=fio.git diff --git a/crc/crc32c.h b/crc/crc32c.h index 1498db91..50f3665f 100644 --- a/crc/crc32c.h +++ b/crc/crc32c.h @@ -18,6 +18,19 @@ #ifndef CRC32C_H #define CRC32C_H +#include "../arch/arch.h" + extern uint32_t crc32c(unsigned char const *, unsigned long); +#ifdef ARCH_HAVE_SSE +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