Home
last modified time | relevance | path

Searched refs:nranges (Results 1 – 11 of 11) sorted by relevance

/external/fio/lib/
Dzipf.c25 to_gen = min(zs->nranges, (uint64_t) ZIPF_MAX_GEN); in zipf_update()
31 static void shared_rand_init(struct zipf_state *zs, unsigned long nranges, in shared_rand_init() argument
35 zs->nranges = nranges; in shared_rand_init()
41 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, in zipf_init() argument
44 shared_rand_init(zs, nranges, seed); in zipf_init()
55 unsigned long long n = zs->nranges; in zipf_next()
76 return (val + zs->rand_off) % zs->nranges; in zipf_next()
79 void pareto_init(struct zipf_state *zs, unsigned long nranges, double h, in pareto_init() argument
82 shared_rand_init(zs, nranges, seed); in pareto_init()
91 n = (zs->nranges - 1) * pow(rand, zs->pareto_pow); in pareto_next()
[all …]
Dgauss.c29 sum += __rand(&gs->r) % (gs->nranges + 1); in gauss_next()
36 while (dev + sum >= gs->nranges) in gauss_next()
44 return sum % gs->nranges; in gauss_next()
47 void gauss_init(struct gauss_state *gs, unsigned long nranges, double dev, in gauss_init() argument
52 gs->nranges = nranges; in gauss_init()
55 gs->stddev = ceil((double) (nranges * 100.0) / dev); in gauss_init()
56 if (gs->stddev > nranges / 2) in gauss_init()
57 gs->stddev = nranges / 2; in gauss_init()
Dzipf.h8 uint64_t nranges; member
18 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed);
21 void pareto_init(struct zipf_state *zs, unsigned long nranges, double h, unsigned int seed);
Dgauss.h9 uint64_t nranges; member
14 void gauss_init(struct gauss_state *gs, unsigned long nranges, double dev,
/external/fio/t/
Dgenzipf.c173 unsigned int nranges; member
194 unsigned long nranges) in output_normal() argument
209 output_sums[i].nranges = 0; in output_normal()
219 os->nranges += node->hits; in output_normal()
221 os->output = (double) cur_vals / (double) nranges; in output_normal()
255 double gb = (double)os->nranges * block_size / 1024.0; in output_normal()
269 hit_sum += os->nranges; in output_normal()
272 os->nranges, gb, p); in output_normal()
283 unsigned long long nranges; in main() local
297 nranges = gib_size * 1024 * 1024 * 1024ULL; in main()
[all …]
/external/syslinux/memdisk/
De820func.c30 int nranges; variable
35 nranges = 1; in e820map_init()
43 for (i = nranges; i > where; i--) in insertrange_at()
49 nranges++; in insertrange_at()
50 ranges[nranges].start = 0ULL; in insertrange_at()
51 ranges[nranges].type = -1U; in insertrange_at()
91 while (i < nranges) { in insertrange()
105 nranges -= (i - j); in insertrange()
Dsetup.c154 for (i = nranges - 1; i >= 0; i--) { in unzip_if_needed()
997 e820_len = (nranges + 3) * sizeof(ranges[0]); in setup()
1048 while (nranges && ranges[nranges - 1].type == 0) { in setup()
1049 ranges[--nranges].type = -1; in setup()
1120 pptr->mdi.cmdline.seg_off.offset = bin_size + (nranges + 1) * sizeof(ranges[0]); in setup()
1134 dpp = mempcpy(dpp, ranges, (nranges + 1) * sizeof(ranges[0])); in setup()
De820.h27 extern int nranges;
De820test.c39 for (i = 0; i < nranges; i++) { in printranges()
/external/fio/
Dfilesetup.c1135 unsigned long nranges; in __init_rand_distribution() local
1141 nranges = (fsize + range_size - 1) / range_size; in __init_rand_distribution()
1148 zipf_init(&f->zipf, nranges, td->o.zipf_theta.u.f, seed); in __init_rand_distribution()
1150 pareto_init(&f->zipf, nranges, td->o.pareto_h.u.f, seed); in __init_rand_distribution()
1152 gauss_init(&f->gauss, nranges, td->o.gauss_dev.u.f, seed); in __init_rand_distribution()
Dinit.c892 unsigned long nranges = td->o.nr_files << FIO_FSERVICE_SHIFT; in init_rand_file_service() local
896 zipf_init(&td->next_file_zipf, nranges, td->zipf_theta, seed); in init_rand_file_service()
899 pareto_init(&td->next_file_zipf, nranges, td->pareto_h, seed); in init_rand_file_service()
902 gauss_init(&td->next_file_gauss, nranges, td->gauss_dev, seed); in init_rand_file_service()