Lines Matching defs:key
140 -- that the key be an array of uint32_t's, and
141 -- that the length be the number of uint32_t's in the key
147 hashlittle() has to dance around fitting the key bytes into registers.
151 const uint32_t *k, /* the key, an array of uint32_t values */
152 size_t length, /* the length of the key, in uint32_ts */
160 /*------------------------------------------------- handle most of the key */
188 hashlittle() -- hash a variable-length key into a 32-bit value
189 k : the key (the unaligned variable-length array of bytes)
190 length : the length of the key, counting by bytes
192 Returns a 32-bit value. Every bit of the key affects every bit of
213 uint32_t jenkins_hash( const void *key, size_t length, uint32_t initval)
221 u.ptr = key;
223 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */
265 const uint16_t *k = (const uint16_t *)key; /* read 16-bit chunks */
311 } else { /* need to read the key one byte at a time */
312 const uint8_t *k = (const uint8_t *)key;
366 uint32_t jenkins_hash( const void *key, size_t length, uint32_t initval)
369 union { const void *ptr; size_t i; } u; /* to cast key to (size_t) happily */
374 u.ptr = key;
376 const uint32_t *k = (const uint32_t *)key; /* read 32-bit chunks */
417 } else { /* need to read the key one byte at a time */
418 const uint8_t *k = (const uint8_t *)key;