comparison jenkinsHash_lookup3.c @ 28:18a72865dd78

marked TODO: doubleTableSize corrupts mem
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Wed, 06 Mar 2013 14:35:01 +0100
parents b398837ef4aa
children
comparison
equal deleted inserted replaced
0:c40ff75b77e9 1:f520bb6dba61
168 except that the length has to be measured in uint32_ts rather than in 168 except that the length has to be measured in uint32_ts rather than in
169 bytes. hashlittle() is more complicated than hashword() only because 169 bytes. hashlittle() is more complicated than hashword() only because
170 hashlittle() has to dance around fitting the key bytes into registers. 170 hashlittle() has to dance around fitting the key bytes into registers.
171 -------------------------------------------------------------------- 171 --------------------------------------------------------------------
172 */ 172 */
173 inline uint32_t 173 uint32_t
174 jenkHash32( 174 jenkHash32(
175 const uint32_t *k, /* the key, an array of uint32_t values */ 175 const uint32_t *k, /* the key, an array of uint32_t values */
176 size_t length) /* the length of the key, in uint32_ts */ 176 size_t length) /* the length of the key, in uint32_ts */
177 { 177 {
178 uint32_t a,b,c; 178 uint32_t a,b,c;