#include <osmocom/core/log2.h>
#include <limits.h>
Go to the source code of this file.
◆ __hash_32
◆ BITS_PER_LONG
◆ GOLDEN_RATIO_32
#define GOLDEN_RATIO_32 0x61C88647 |
◆ GOLDEN_RATIO_64
#define GOLDEN_RATIO_64 0x61C8864680B583EBull |
◆ GOLDEN_RATIO_PRIME
◆ hash_32
◆ hash_64
◆ hash_long
#define hash_long |
( |
| val, |
|
|
| bits ) |
Value:
#define hash_64
Definition hash.h:74
Referenced by hash_ptr().
◆ __hash_32_generic()
uint32_t __hash_32_generic |
( |
uint32_t | val | ) |
|
|
inlinestatic |
◆ hash32_ptr()
uint32_t hash32_ptr |
( |
const void * | ptr | ) |
|
|
inlinestatic |
◆ hash_32_generic()
uint32_t hash_32_generic |
( |
uint32_t | val, |
|
|
unsigned int | bits ) |
|
inlinestatic |
◆ hash_64_generic()
__always_inline uint32_t hash_64_generic |
( |
uint64_t | val, |
|
|
unsigned int | bits ) |
|
static |
◆ hash_ptr()
uint32_t hash_ptr |
( |
const void * | ptr, |
|
|
unsigned int | bits ) |
|
inlinestatic |