17 #define BIHASH_TYPE _8_8 18 #define BIHASH_KVP_PER_PAGE 4 20 #ifndef __included_bihash_8_8_h__ 21 #define __included_bihash_8_8_h__ 29 #include <x86intrin.h> 45 if (v->
key == ~0ULL && v->
value == ~0ULL)
58 return _mm_crc32_u64 (0, v->
key);
88 #undef __included_bihash_template_h__
Fixed length block allocator.
static u64 clib_xxhash(u64 key)
static int clib_bihash_is_free_8_8(clib_bihash_kv_8_8_t *v)
Decide if a clib_bihash_kv_8_8_t instance is free.
8 octet key, 8 octet key value pair
static u8 * format_bihash_kvp_8_8(u8 *s, va_list *args)
Format a clib_bihash_kv_8_8_t instance.
static u64 clib_bihash_hash_8_8(clib_bihash_kv_8_8_t *v)
Hash a clib_bihash_kv_8_8_t instance.
static int clib_bihash_key_compare_8_8(u64 a, u64 b)
Compare two clib_bihash_kv_8_8_t instances.