38 #ifndef included_phash_h 39 #define included_phash_h 101 #define PHASH_FLAG_MIX64 (1 << 0) 102 #define PHASH_FLAG_MIX32 (0 << 0) 105 #define PHASH_FLAG_USE_SCRAMBLE (1 << 1) 108 #define PHASH_FLAG_SLOW_MODE (0 << 2) 109 #define PHASH_FLAG_FAST_MODE (1 << 2) 112 #define PHASH_FLAG_NON_MINIMAL (0 << 3) 113 #define PHASH_FLAG_MINIMAL (1 << 3) 129 void (*key_seed1) (
void *
private,
uword key,
void *seed);
132 void (*key_seed2) (
void *
private,
uword key1,
uword key2,
void *seed);
clib_error_t * phash_find_perfect_hash(phash_main_t *pm)
static void phash_main_free_working_memory(phash_main_t *pm)
clib_memset(h->entries, 0, sizeof(h->entries[0])*entries)
#define vec_free(V)
Free vector's memory (no header).
uword phash_hash_slow(phash_main_t *pm, uword key)
int phash_test_main(unformat_input_t *input)
clib_error_t * phash_validate(phash_main_t *pm)
static void phash_main_free(phash_main_t *pm)
#define PHASH_FLAG_USE_SCRAMBLE
static void phash_tabb_free(phash_tabb_t *b)