X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=crc%2Fcrc32c-intel.c;h=cec5ad5dec9d5d88ec7498133f2915ae0c1bd146;hp=c0abe73ad7a85ac5bb794f3e50b6137b796391df;hb=419484b934222e589f0b718e9494b045df176167;hpb=b29ee5b3dee417016164198fb240344ef666de2b;ds=sidebyside diff --git a/crc/crc32c-intel.c b/crc/crc32c-intel.c index c0abe73a..cec5ad5d 100644 --- a/crc/crc32c-intel.c +++ b/crc/crc32c-intel.c @@ -1,4 +1,5 @@ #include +#include "crc32c.h" /* * Based on a posting to lkml by Austin Zhang @@ -11,6 +12,8 @@ * Volume 2A: Instruction Set Reference, A-M */ +#ifdef ARCH_HAVE_SSE + #if BITS_PER_LONG == 64 #define REX_PRE "0x48, " #define SCALE_F 8 @@ -64,3 +67,6 @@ uint32_t crc32c_intel(unsigned char const *data, unsigned long length) return crc; } + +#endif /* ARCH_HAVE_SSE */ +