summaryrefslogtreecommitdiffstats
path: root/clib/hash.h
diff options
context:
space:
mode:
authorPatrick Williams <williamspatrick@gmail.com>2015-04-22 15:11:25 -0500
committerPatrick Williams <williamspatrick@gmail.com>2015-04-22 15:11:25 -0500
commit2e790b8409071ca15767d822dabfa8e60f12c6e2 (patch)
tree14a358904909e8fe0f631d414333c26de81e5042 /clib/hash.h
parentaa8354ef7ee6606fe32453e3eedce9af8038230a (diff)
parent76ce4aadee1a7a890001affed54a0fb1110b1793 (diff)
downloadffs-2e790b8409071ca15767d822dabfa8e60f12c6e2.tar.gz
ffs-2e790b8409071ca15767d822dabfa8e60f12c6e2.zip
Merge pull request #4 from anoo1/master
Support to compile in 64bit for Ubuntu Little Endian
Diffstat (limited to 'clib/hash.h')
-rw-r--r--clib/hash.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/clib/hash.h b/clib/hash.h
index 52eb22f..29fd9ec 100644
--- a/clib/hash.h
+++ b/clib/hash.h
@@ -26,7 +26,7 @@
/*
* File: hash.h
* Author: Shaun Wetzstein <shaun@us.ibm.com>
- * Descr: Various int32 hash functions
+ * Descr: Various int64 hash functions
* Note:
* Date: 10/03/10
*/
@@ -38,13 +38,13 @@
/* ======================================================================= */
-static inline int32_t int32_hash1(int32_t);
+static inline int64_t int64_hash1(int64_t);
-typedef uint32_t(*hash_t) (char *, uint32_t);
+typedef uint64_t(*hash_t) (char *, uint64_t);
/* ======================================================================= */
-static inline int32_t int32_hash1(int32_t key)
+static inline int64_t int64_hash1(int64_t key)
{
key = ~key + (key << 15);
key = key ^ (key >> 12);
OpenPOWER on IntegriCloud