sandbox/misc/algotune/algotune.h

25 lines
622 B
C
Raw Permalink Normal View History

#ifndef __LIB_ALGOTUNE__
#define __LIB_ALGOTUNE__
#include <vector>
namespace algotune {
2018-04-13 04:24:50 +00:00
int64_t display_step = 1000;
2018-04-13 04:53:47 +00:00
void reseed(void);
2018-04-13 04:24:50 +00:00
int rand_int(int low, int high);
2018-04-13 04:24:50 +00:00
int64_t rand_int64(int64_t low, int64_t high);
std::vector<int> gen_int_vector(int size, int low, int high);
2018-04-13 04:24:50 +00:00
std::vector<int64_t> gen_int64_vector(int64_t size, int64_t low, int64_t high);
2018-04-13 04:24:50 +00:00
int64_t stress_test_int(bool(*func)(std::vector<int>&), int size, int low, int high);
int64_t stress_test_int64(bool(*func)(std::vector<int64_t>&), int64_t size, int64_t low, int64_t high);
} // namespace algotune
#endif // __LIB_ALGOTUNE__