Searched refs:hashmask (Results 1 – 14 of 14) sorted by relevance
/openbsd/libexec/tradcpp/ |
H A D | macro.c | 75 static unsigned hashmask; variable 317 hashmask = 0x3; in macrotable_init() 352 bucket = macroarrayarray_get(¯os, hash & hashmask); in macrotable_findlen() 398 assert(hashmask == numbuckets - 1); in macrotable_rehash() 399 newmask = (hashmask << 1) | 1U; in macrotable_rehash() 400 tossbit = newmask & ~hashmask; in macrotable_rehash() 401 hashmask = newmask; in macrotable_rehash() 449 bucket = macroarrayarray_get(¯os, hash & hashmask); in macrotable_add() 452 macroarrayarray_set(¯os, hash & hashmask, bucket); in macrotable_add()
|
/openbsd/usr.sbin/dvmrpd/ |
H A D | neighbor.c | 46 u_int32_t hashmask; member 50 &nbrtable.hashtbl[(x) & nbrtable.hashmask] 183 nbrtable.hashmask = hs - 1; in nbr_init()
|
/openbsd/usr.sbin/ripd/ |
H A D | neighbor.c | 52 u_int32_t hashmask; member 56 &nbrtable.hashtbl[(x) & nbrtable.hashmask] 167 nbrtable.hashmask = hs - 1; in nbr_init()
|
/openbsd/usr.sbin/ospfd/ |
H A D | lsupdate.c | 534 u_int32_t hashmask; member 556 lsacache.hashmask = hs - 1; in lsa_cache_init() 591 head = &lsacache.hashtbl[lsa_hash_hdr(&ref->hdr) & lsacache.hashmask]; in lsa_cache_add() 629 head = &lsacache.hashtbl[lsa_hash_hdr(lsa_hdr) & lsacache.hashmask]; in lsa_cache_look()
|
H A D | neighbor.c | 47 u_int32_t hashmask; member 51 &nbrtable.hashtbl[(x) & nbrtable.hashmask] 253 nbrtable.hashmask = hs - 1; in nbr_init()
|
H A D | rde.c | 906 u_int32_t hashmask; member 910 &rdenbrtable.hashtbl[(x) & rdenbrtable.hashmask] 927 rdenbrtable.hashmask = hs - 1; in rde_nbr_init() 1007 for (i = 0; i <= rdenbrtable.hashmask; i++) { in rde_nbr_iface_del()
|
/openbsd/usr.sbin/ospf6d/ |
H A D | lsupdate.c | 545 u_int32_t hashmask; member 567 lsacache.hashmask = hs - 1; in lsa_cache_init() 602 head = &lsacache.hashtbl[lsa_hash_hdr(&ref->hdr) & lsacache.hashmask]; in lsa_cache_add() 640 head = &lsacache.hashtbl[lsa_hash_hdr(lsa_hdr) & lsacache.hashmask]; in lsa_cache_look()
|
H A D | neighbor.c | 47 u_int32_t hashmask; member 51 &nbrtable.hashtbl[(x) & nbrtable.hashmask] 254 nbrtable.hashmask = hs - 1; in nbr_init()
|
H A D | rde.c | 963 u_int32_t hashmask; member 967 &rdenbrtable.hashtbl[(x) & rdenbrtable.hashmask] 984 rdenbrtable.hashmask = hs - 1; in rde_nbr_init()
|
/openbsd/sys/kern/ |
H A D | kern_subr.c | 219 hashinit(int elements, int type, int flags, u_long *hashmask) in hashinit() argument 236 *hashmask = hashsize - 1; in hashinit()
|
H A D | kern_event.c | 1700 u_long hashmask; in kqueue_expand_hash() local 1706 hash = hashinit(KN_HASHSIZE, M_KEVENT, M_WAITOK, &hashmask); in kqueue_expand_hash() 1710 kq->kq_knhashmask = hashmask; in kqueue_expand_hash()
|
/openbsd/usr.sbin/nsd/ |
H A D | lookup3.c | 108 #define hashmask(n) (hashsize(n)-1) macro
|
/openbsd/sbin/unwind/libunbound/util/storage/ |
H A D | lookup3.c | 117 #define hashmask(n) (hashsize(n)-1) macro
|
/openbsd/usr.sbin/unbound/util/storage/ |
H A D | lookup3.c | 117 #define hashmask(n) (hashsize(n)-1) macro
|