projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Disable murmur test on sparc hardware (platform specific hash algorith)
[m6w6/libmemcached]
/
libmemcached
/
jenkins_hash.c
diff --git
a/libmemcached/jenkins_hash.c
b/libmemcached/jenkins_hash.c
index e84cf3edefc0af9c829f792e933e4dfe60611cd4..e4aa4f19da0b4535535260516ed0c670c43679a5 100644
(file)
--- a/
libmemcached/jenkins_hash.c
+++ b/
libmemcached/jenkins_hash.c
@@
-63,7
+63,7
@@
uint32_t jenkins_hash(const void *key, size_t length, uint32_t initval)
a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;
u.ptr = key;
a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;
u.ptr = key;
-#if
def BYTEORDER_LITTLE_
ENDIAN
+#if
ndef WORDS_BIG
ENDIAN
if ((u.i & 0x3) == 0)
{
const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */
if ((u.i & 0x3) == 0)
{
const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */
@@
-202,7
+202,7
@@
uint32_t jenkins_hash(const void *key, size_t length, uint32_t initval)
case 0 : return c;
default : return c;
}
case 0 : return c;
default : return c;
}
-#if
def BYTEORDER_LITTLE_
ENDIAN
+#if
ndef WORDS_BIG
ENDIAN
}
#endif
}
#endif