X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=lib%2Fzipf.h;h=97a9b32fe6aeedc6b56b87d00545779b7f026d75;hb=925fee33e47f7eb755ee893e87f0de2bd405a8cc;hp=6578ef1c008a88e26397e966fea691e53e83df4b;hpb=5ffb051d716725b7c39cf115af779a29d09b62a5;p=fio.git diff --git a/lib/zipf.h b/lib/zipf.h index 6578ef1c..97a9b32f 100644 --- a/lib/zipf.h +++ b/lib/zipf.h @@ -8,10 +8,14 @@ struct zipf_state { double theta; double zeta2; double zetan; + double pareto_pow; struct frand_state rand; }; void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta); unsigned long long zipf_next(struct zipf_state *zs); +void pareto_init(struct zipf_state *zs, unsigned long nranges, double h); +unsigned long long pareto_next(struct zipf_state *zs); + #endif