projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug in smalloc size calculation
[fio.git]
/
hash.h
diff --git
a/hash.h
b/hash.h
index acf17bb8e7f963b1ea5400a17d24819f319a8062..73f961b73ac77975bd7a86eb8c7b49d995e05408 100644
(file)
--- a/
hash.h
+++ b/
hash.h
@@
-1,5
+1,8
@@
#ifndef _LINUX_HASH_H
#define _LINUX_HASH_H
#ifndef _LINUX_HASH_H
#define _LINUX_HASH_H
+
+#include "arch/arch.h"
+
/* Fast hashing routine for a long.
(C) 2002 William Lee Irwin III, IBM */
/* Fast hashing routine for a long.
(C) 2002 William Lee Irwin III, IBM */
@@
-13,6
+16,7
@@
* 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.
*/
+
#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