Searched refs:NBUCKETS (Results 1 – 5 of 5) sorted by relevance
/freebsd/tools/test/malloc/ |
H A D | main.c | 6 u_long NBUCKETS = 2000; variable 18 if (argc > 2) NBUCKETS = strtoul(argv[2],0,0); in main() 21 foo = malloc(sizeof(*foo) * NBUCKETS); in main() 22 memset(foo, 0, sizeof(*foo) * NBUCKETS); in main() 24 for (j = 0; j < 40960/i && j < NBUCKETS; j++) { in main() 27 for (j = 0; j < 40960/i && j < NBUCKETS; j++) { in main() 34 j = random() % NBUCKETS; in main() 48 for (j = 0; j < NBUCKETS; j++) { in main() 55 sbrk(0), NOPS, NBUCKETS, NSIZE); in main()
|
/freebsd/sys/netgraph/netflow/ |
H A D | netflow.c | 74 #define NBUCKETS (65536) /* must be power of 2 */ macro 81 (NBUCKETS - 1)) 87 (NBUCKETS - 1)) 495 priv->hash = malloc(NBUCKETS * sizeof(struct flow_hash_entry), in ng_netflow_cache_init() 499 for (i = 0, hsh = priv->hash; i < NBUCKETS; i++, hsh++) { in ng_netflow_cache_init() 506 priv->hash6 = malloc(NBUCKETS * sizeof(struct flow_hash_entry), in ng_netflow_cache_init() 510 for (i = 0, hsh = priv->hash6; i < NBUCKETS; i++, hsh++) { in ng_netflow_cache_init() 586 for (hsh = priv->hash, i = 0; i < NBUCKETS; hsh++, i++) in ng_netflow_cache_flush() 593 for (hsh = priv->hash6, i = 0; i < NBUCKETS; hsh++, i++) in ng_netflow_cache_flush() 603 for (i = 0, hsh = priv->hash; i < NBUCKETS; i++, hsh++) in ng_netflow_cache_flush() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | tc.alloc.c | 145 #define NBUCKETS ((sizeof(long) << 3) - 3) macro 146 static union overhead *nextf[NBUCKETS] IZERO_STRUCT; 152 static U_int nmalloc[NBUCKETS] IZERO_STRUCT; 333 CHECK(op->ov_index >= NBUCKETS, in free() 488 for (i = 0; i < NBUCKETS; i++) { in findbucket() 616 for (i = 0; i < NBUCKETS; i++) { in showall() 623 for (i = 0; i < NBUCKETS; i++) { in showall()
|
/freebsd/usr.bin/mkstr/ |
H A D | mkstr.c | 255 #define NBUCKETS 511 macro 261 } *bucket[NBUCKETS]; 276 i = hashval % NBUCKETS; in hashit() 278 i += NBUCKETS; in hashit()
|
/freebsd/libexec/rtld-elf/ |
H A D | rtld_malloc.c | 94 #define NBUCKETS 30 macro 95 static union overhead *nextf[NBUCKETS]; 135 if (amt == 0 || bucket >= NBUCKETS) in __crt_malloc()
|