| MI_VECTOR_HASH(3) | Library Functions Manual | MI_VECTOR_HASH(3) |
mi_vector_hash —
fast 32bit hash functions
Standard C Library (libc, -lc)
#include
<stdlib.h>
void
mi_vector_hash(const
void * restrict key,
size_t len,
uint32_t seed,
uint32_t hashes[3]);
The mi_vector_hash function computes three
32-bit hash values of the memory area starting at key
with length len.
The output is identical on all architectures and only depends on key and seed.
An optimised code path is used if key is aligned on a 32-bit boundary.
The mi_vector_hash function appeared in
NetBSD 6.0.
The hash function has been created by Bob Jenkins.
| July 13, 2009 | NetBSD 11.0 |