Commit | Line | Data |
---|---|---|
56d9fa4b JA |
1 | #ifndef FIO_GAUSS_H |
2 | #define FIO_GAUSS_H | |
3 | ||
4 | #include <inttypes.h> | |
5 | #include "rand.h" | |
6 | ||
7 | struct gauss_state { | |
8 | struct frand_state r; | |
9 | uint64_t nranges; | |
10 | unsigned int stddev; | |
a87c90fd | 11 | unsigned int rand_off; |
8348daf9 | 12 | bool disable_hash; |
56d9fa4b JA |
13 | }; |
14 | ||
f88cd222 | 15 | void gauss_init(struct gauss_state *gs, unsigned long nranges, double dev, |
a87c90fd | 16 | double center, unsigned int seed); |
56d9fa4b | 17 | unsigned long long gauss_next(struct gauss_state *gs); |
8348daf9 | 18 | void gauss_disable_hash(struct gauss_state *gs); |
56d9fa4b JA |
19 | |
20 | #endif |