projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make async IO verify offload handle errors properly
[fio.git]
/
hash.h
diff --git
a/hash.h
b/hash.h
index acf17bb8e7f963b1ea5400a17d24819f319a8062..3e7854b12615e354ca4e518443833d187f0d91b1 100644
(file)
--- a/
hash.h
+++ b/
hash.h
@@
-13,6
+13,13
@@
* them can use shifts and additions instead of multiplications for
* machines where multiplications are slow.
*/
* them can use shifts and additions instead of multiplications for
* machines where multiplications are slow.
*/
+
+#ifdef __WORDSIZE
+#define BITS_PER_LONG __WORDSIZE
+#else
+#define BITS_PER_LONG 32
+#endif
+
#if BITS_PER_LONG == 32
/* 2^31 + 2^29 - 2^25 + 2^22 - 2^19 - 2^16 + 1 */
#define GOLDEN_RATIO_PRIME 0x9e370001UL
#if BITS_PER_LONG == 32
/* 2^31 + 2^29 - 2^25 + 2^22 - 2^19 - 2^16 + 1 */
#define GOLDEN_RATIO_PRIME 0x9e370001UL