projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't compile crc32c-intel on non-x86 platforms
[fio.git]
/
crc
/
crc32c-intel.c
diff --git
a/crc/crc32c-intel.c
b/crc/crc32c-intel.c
index c0abe73ad7a85ac5bb794f3e50b6137b796391df..cec5ad5dec9d5d88ec7498133f2915ae0c1bd146 100644
(file)
--- a/
crc/crc32c-intel.c
+++ b/
crc/crc32c-intel.c
@@
-1,4
+1,5
@@
#include <inttypes.h>
#include <inttypes.h>
+#include "crc32c.h"
/*
* Based on a posting to lkml by Austin Zhang <austin.zhang@intel.com>
/*
* Based on a posting to lkml by Austin Zhang <austin.zhang@intel.com>
@@
-11,6
+12,8
@@
* Volume 2A: Instruction Set Reference, A-M
*/
* Volume 2A: Instruction Set Reference, A-M
*/
+#ifdef ARCH_HAVE_SSE
+
#if BITS_PER_LONG == 64
#define REX_PRE "0x48, "
#define SCALE_F 8
#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;
}
return crc;
}
+
+#endif /* ARCH_HAVE_SSE */
+