X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fhash.h;h=3c754c8e29ff9487dad5c646794024c120f044e3;hb=4b6614030f384f7c8d847360cacf5c7f7560c6be;hp=968c7781c36f433ca33d49b1219543b00a6a0eed;hpb=87997686ee9a6c7aecec423f05bec21a938ec9bb;p=vpp.git diff --git a/src/vppinfra/hash.h b/src/vppinfra/hash.h index 968c7781c36..3c754c8e29f 100644 --- a/src/vppinfra/hash.h +++ b/src/vppinfra/hash.h @@ -123,8 +123,9 @@ always_inline uword hash_is_user (void *v, uword i) { hash_t *h = hash_header (v); - uword i0 = i / BITS (h->is_user[0]); - uword i1 = i % BITS (h->is_user[0]); + uword bits = BITS (h->is_user[0]); + uword i0 = i / bits; + uword i1 = i % bits; return (h->is_user[i0] & ((uword) 1 << i1)) != 0; }