9 #define SECTION_TERMINATED -1 50 #define __STAC_EXPANDED(f_pfx,t,f_sfx) f_pfx##t##f_sfx 51 #define STAC(f_pfx,t,f_sfx) __STAC_EXPANDED(f_pfx,t,f_sfx) 69 #define LAG1 (UINT16_C(24)) 70 #define LAG2 (UINT16_C(55)) 71 #define RAND_SSIZE ((UINT16_C(1))<<6) 72 #define RAND_SMASK (RAND_SSIZE-1) 73 #define RAND_EXHAUST_LIMIT LAG2 75 #define RAND_REFILL_COUNT ((LAG2*10)-RAND_EXHAUST_LIMIT) 82 #define PRNG_RAND_MAX UINT64_MAX 87 uint_fast16_t r, new_rands=0;
97 for( r=0; r<new_rands; r++ ) {
116 state->
s[
i] = i*(UINT64_C(2147483647)) + seed;
120 for(i=0; i<10000; i++) {
130 #undef RAND_EXHAUST_LIMIT 131 #undef RAND_REFILL_COUNT
static uint64_t prng_rand(struct prng_rand_t *state)
int write_int32_t_array(int fd, int32_t *arr, int n)
int parse_uint32_t_array(char *s, uint32_t *arr, int n)
void data_to_output(int fd, void *vdata)
char * find_section_start(char *s, int n)
int write_uint16_t_array(int fd, uint16_t *arr, int n)
void data_to_input(int fd, void *vdata)
void run_benchmark(void *vargs)
int parse_uint64_t_array(char *s, uint64_t *arr, int n)
int parse_int32_t_array(char *s, int32_t *arr, int n)
int write_float_array(int fd, float *arr, int n)
int parse_int16_t_array(char *s, int16_t *arr, int n)
#define RAND_REFILL_COUNT
int write_double_array(int fd, double *arr, int n)
#define RAND_EXHAUST_LIMIT
int write_string(int fd, char *arr, int n)
int write_section_header(int fd)
int write_uint64_t_array(int fd, uint64_t *arr, int n)
int write_uint32_t_array(int fd, uint32_t *arr, int n)
int parse_string(char *s, char *arr, int n)
int write_int16_t_array(int fd, int16_t *arr, int n)
int parse_uint16_t_array(char *s, uint16_t *arr, int n)
int write_int8_t_array(int fd, int8_t *arr, int n)
int write_int64_t_array(int fd, int64_t *arr, int n)
int write_uint8_t_array(int fd, uint8_t *arr, int n)
void output_to_data(int fd, void *vdata)
void input_to_data(int fd, void *vdata)
static void prng_srand(uint64_t seed, struct prng_rand_t *state)
int check_data(void *vdata, void *vref)
int parse_double_array(char *s, double *arr, int n)
int parse_uint8_t_array(char *s, uint8_t *arr, int n)
int parse_float_array(char *s, float *arr, int n)
int parse_int8_t_array(char *s, int8_t *arr, int n)
int parse_int64_t_array(char *s, int64_t *arr, int n)