Searched refs:NBUCKETS (Results 1 - 5 of 5) sorted by relevance

/freebsd-11-stable/tools/test/malloc/
H A Dmain.c7 u_long NBUCKETS = 2000; variable
19 if (argc > 2) NBUCKETS = strtoul(argv[2],0,0);
22 foo = malloc(sizeof(*foo) * NBUCKETS);
23 memset(foo, 0, sizeof(*foo) * NBUCKETS);
25 for (j = 0; j < 40960/i && j < NBUCKETS; j++) {
28 for (j = 0; j < 40960/i && j < NBUCKETS; j++) {
35 j = random() % NBUCKETS;
49 for (j = 0; j < NBUCKETS; j++) {
55 printf("BRK(2)=%p NOPS=%lu NBUCKETS=%lu NSIZE=%lu\n",
56 sbrk(0), NOPS, NBUCKETS, NSIZ
[all...]
/freebsd-11-stable/libexec/rtld-elf/
H A Dmalloc.c108 #define NBUCKETS 30 macro
109 static union overhead *nextf[NBUCKETS];
119 static u_int nmalloc[NBUCKETS];
318 ASSERT(size < NBUCKETS);
373 i = NBUCKETS;
418 for (i = 0; i < NBUCKETS; i++) {
446 for (i = 0; i < NBUCKETS; i++) {
453 for (i = 0; i < NBUCKETS; i++) {
/freebsd-11-stable/usr.bin/mkstr/
H A Dmkstr.c268 #define NBUCKETS 511 macro
274 } *bucket[NBUCKETS];
289 i = hashval % NBUCKETS;
291 i += NBUCKETS;
/freebsd-11-stable/contrib/tcsh/
H A Dtc.alloc.c145 #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,
488 for (i = 0; i < NBUCKETS; i++) {
616 for (i = 0; i < NBUCKETS; i++) {
623 for (i = 0; i < NBUCKETS; i++) {
/freebsd-11-stable/sys/netgraph/netflow/
H A Dnetflow.c67 #define NBUCKETS (65536) /* must be power of 2 */ macro
74 (NBUCKETS - 1))
80 (NBUCKETS - 1))
529 priv->hash = malloc(NBUCKETS * sizeof(struct flow_hash_entry),
533 for (i = 0, hsh = priv->hash; i < NBUCKETS; i++, hsh++) {
540 priv->hash6 = malloc(NBUCKETS * sizeof(struct flow_hash_entry),
544 for (i = 0, hsh = priv->hash6; i < NBUCKETS; i++, hsh++) {
620 for (hsh = priv->hash, i = 0; i < NBUCKETS; hsh++, i++)
627 for (hsh = priv->hash6, i = 0; i < NBUCKETS; hsh++, i++)
637 for (i = 0, hsh = priv->hash; i < NBUCKETS;
[all...]

Completed in 115 milliseconds