Searched refs:nranges (Results 1 – 4 of 4) sorted by relevance
/external/fio/lib/ |
D | zipf.c | 26 to_gen = min(zs->nranges, (uint64_t) ZIPF_MAX_GEN); in zipf_update() 32 static void shared_rand_init(struct zipf_state *zs, unsigned long nranges, in shared_rand_init() argument 36 zs->nranges = nranges; in shared_rand_init() 42 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, in zipf_init() argument 45 shared_rand_init(zs, nranges, seed); in zipf_init() 56 unsigned long long n = zs->nranges; in zipf_next() 72 return (__hash_u64(val - 1) + zs->rand_off) % zs->nranges; in zipf_next() 75 void pareto_init(struct zipf_state *zs, unsigned long nranges, double h, in pareto_init() argument 78 shared_rand_init(zs, nranges, seed); in pareto_init() 85 unsigned long long n = zs->nranges - 1; in pareto_next() [all …]
|
D | zipf.h | 8 uint64_t nranges; member 17 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed); 20 void pareto_init(struct zipf_state *zs, unsigned long nranges, double h, unsigned int seed);
|
/external/fio/t/ |
D | genzipf.c | 160 unsigned int nranges; member 175 unsigned long long nranges; in main() local 187 nranges = gb_size * 1024 * 1024 * 1024ULL; in main() 188 nranges /= block_size; in main() 191 zipf_init(&zs, nranges, dist_val, 1); in main() 193 pareto_init(&zs, nranges, dist_val, 1); in main() 196 hash_size = nranges; in main() 206 nodes = malloc(nranges * sizeof(struct node)); in main() 208 for (nr_vals = i = j = 0; i < nranges; i++) { in main() 241 output_sums[i].nranges = 1; in main() [all …]
|
/external/fio/ |
D | filesetup.c | 987 unsigned long nranges; in __init_rand_distribution() local 993 nranges = (fsize + range_size - 1) / range_size; in __init_rand_distribution() 1000 zipf_init(&f->zipf, nranges, td->o.zipf_theta.u.f, seed); in __init_rand_distribution() 1002 pareto_init(&f->zipf, nranges, td->o.pareto_h.u.f, seed); in __init_rand_distribution()
|