Lines Matching refs:maxcnt
3505 optimal_bucket_size (Elf32_Word *hashcodes, size_t maxcnt, int optlevel)
3515 if (maxcnt == 0)
3521 minsize = maxcnt;
3522 maxsize = maxcnt + 10000 / maxcnt;
3528 minsize = MAX (1, maxcnt / 4);
3531 maxsize = 2 * maxcnt + (6 * MIN (optlevel, 100) * maxcnt) / 100;
3533 bestsize = maxcnt;
3537 counts = (uint32_t *) xmalloc ((maxcnt + 1 + maxsize) * sizeof (uint32_t));
3538 lengths = &counts[maxcnt + 1];
3550 memset (counts, '\0', (maxcnt + 1) * sizeof (uint32_t));
3554 for (inner = 1; inner < maxcnt; ++inner)
3586 factor = (1.0 * (double) success / (double) maxcnt
3587 + 0.3 * (double) maxcnt / (double) size);
3589 factor = (0.3 * (double) success / (double) maxcnt
3590 + 1.0 * (double) maxcnt / (double) size);
3594 cost = (2 + maxcnt + size) * (factor + 1.0 / 16.0);
3597 printf ("maxcnt = %d, size = %d, cost = %Ld, success = %g, fail = %g, factor = %g\n",
3598 maxcnt, size, cost, (double) success / (double) maxcnt, (double) maxcnt / (double) size, factor);
3616 optimal_gnu_hash_size (Elf32_Word *hashcodes, size_t maxcnt, int optlevel,
3622 *nbuckets = 3 * maxcnt / 2;
5204 size_t maxcnt;
5217 maxcnt = file->nsymtab;
5219 file->symindirect = (Elf32_Word *) xcalloc (maxcnt, sizeof (Elf32_Word));
5223 for (cnt = ld_state.need_symtab ? 1 : file->nlocalsymbols; cnt < maxcnt;