X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fbihash_16_8_32.h;h=d899253302c2183a8ec07f3a7fa0a105a5fc9640;hb=5294cdc79213a8703f70d9a300b0c5806c788ca4;hp=9453f88ace7c6ec6e1d5aba50aae0602fbf0679e;hpb=16e4a4a0ae39ebc1ded1b6dba2799b176aee1828;p=vpp.git diff --git a/src/vppinfra/bihash_16_8_32.h b/src/vppinfra/bihash_16_8_32.h index 9453f88ace7..d899253302c 100644 --- a/src/vppinfra/bihash_16_8_32.h +++ b/src/vppinfra/bihash_16_8_32.h @@ -43,11 +43,16 @@ typedef struct u64 value; } clib_bihash_kv_16_8_32_t; +static inline void +clib_bihash_mark_free_16_8_32 (clib_bihash_kv_16_8_32_t *v) +{ + v->value = 0xFEEDFACE8BADF00DULL; +} + static inline int clib_bihash_is_free_16_8_32 (clib_bihash_kv_16_8_32_t * v) { - /* Free values are clib_memset to 0xff, check a bit... */ - if (v->key[0] == ~0ULL && v->value == ~0ULL) + if (v->value == 0xFEEDFACE8BADF00DULL) return 1; return 0; }