128 key = ~key + (key << 21);
129 key = key ^ (key >> 24);
130 key = key + (key << 3) + (key << 8);
131 key = key ^ (key >> 14);
132 key = key + (key << 2) + (key << 4);
133 key = key ^ (key >> 28);
134 key = key + (key << 31);
tommy_uint32_t tommy_hash_u32(tommy_uint32_t init_val, const void *void_key, tommy_size_t key_len)
Hash function with a 32 bits result.
tommy_uint32_t tommy_key_t
Key type used in indexed data structures to store the key or the hash value.
Definition: tommytypes.h:160
uint32_t tommy_uint32_t
Generic uint32_t type.
Definition: tommytypes.h:46
tommy_key_t tommy_hash_t
Hash type used in hashtables.
Definition: tommyhash.h:43
tommy_uint32_t tommy_inthash_u32(tommy_uint32_t key)
Integer reversible hash function for 32 bits.
Definition: tommyhash.h:108
tommy_uint64_t tommy_hash_u64(tommy_uint64_t init_val, const void *void_key, tommy_size_t key_len)
Hash function with a 64 bits result.
tommy_uint64_t tommy_inthash_u64(tommy_uint64_t key)
Integer reversible hash function for 64 bits.
Definition: tommyhash.h:126
size_t tommy_size_t
Generic size_t type.
Definition: tommytypes.h:50
uint64_t tommy_uint64_t
Generic uint64_t type.
Definition: tommytypes.h:47
tommy_uint32_t tommy_strhash_u32(tommy_uint64_t init_val, const void *void_key)
String hash function with a 32 bits result.