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

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

Completed in 232 milliseconds