Home
last modified time | relevance | path

Searched refs:NBUCKETS (Results 1 – 6 of 6) sorted by relevance

/freebsd-9-stable/tools/test/malloc/
Dmain.c7 u_long NBUCKETS = 2000; variable
19 if (argc > 2) NBUCKETS = strtoul(argv[2],0,0); in main()
22 foo = malloc(sizeof(*foo) * NBUCKETS); in main()
23 memset(foo, 0, sizeof(*foo) * NBUCKETS); in main()
25 for (j = 0; j < 40960/i && j < NBUCKETS; j++) { in main()
28 for (j = 0; j < 40960/i && j < NBUCKETS; j++) { in main()
35 j = random() % NBUCKETS; in main()
49 for (j = 0; j < NBUCKETS; j++) { in main()
56 sbrk(0), NOPS, NBUCKETS, NSIZE); in main()
/freebsd-9-stable/libexec/rtld-elf/
Dmalloc.c113 #define NBUCKETS 30 macro
114 static union overhead *nextf[NBUCKETS];
124 static u_int nmalloc[NBUCKETS];
334 ASSERT(size < NBUCKETS);
389 i = NBUCKETS;
434 for (i = 0; i < NBUCKETS; i++) {
462 for (i = 0; i < NBUCKETS; i++) {
469 for (i = 0; i < NBUCKETS; i++) {
/freebsd-9-stable/sys/netgraph/netflow/
Dnetflow.c65 #define NBUCKETS (65536) /* must be power of 2 */ macro
72 (NBUCKETS - 1))
78 (NBUCKETS - 1))
523 priv->hash = malloc(NBUCKETS * sizeof(struct flow_hash_entry), in ng_netflow_cache_init()
527 for (i = 0, hsh = priv->hash; i < NBUCKETS; i++, hsh++) { in ng_netflow_cache_init()
534 priv->hash6 = malloc(NBUCKETS * sizeof(struct flow_hash_entry), in ng_netflow_cache_init()
538 for (i = 0, hsh = priv->hash6; i < NBUCKETS; i++, hsh++) { in ng_netflow_cache_init()
599 for (hsh = priv->hash, i = 0; i < NBUCKETS; hsh++, i++) in ng_netflow_cache_flush()
606 for (hsh = priv->hash6, i = 0; i < NBUCKETS; hsh++, i++) in ng_netflow_cache_flush()
616 for (i = 0, hsh = priv->hash; i < NBUCKETS; i++, hsh++) in ng_netflow_cache_flush()
[all …]
/freebsd-9-stable/contrib/tcsh/
Dtc.alloc.c141 #define NBUCKETS ((sizeof(long) << 3) - 3) macro
142 static union overhead *nextf[NBUCKETS] IZERO_STRUCT;
148 static U_int nmalloc[NBUCKETS] IZERO_STRUCT;
329 CHECK(op->ov_index >= NBUCKETS, in free()
481 for (i = 0; i < NBUCKETS; i++) { in findbucket()
609 for (i = 0; i < NBUCKETS; i++) { in showall()
616 for (i = 0; i < NBUCKETS; i++) { in showall()
/freebsd-9-stable/usr.bin/mkstr/
Dmkstr.c268 #define NBUCKETS 511 macro
274 } *bucket[NBUCKETS];
289 i = hashval % NBUCKETS; in hashit()
291 i += NBUCKETS; in hashit()
/freebsd-9-stable/contrib/gcc/
DChangeLog-1999958 (NBUCKETS): Kill.