diff options
author | Nick Foster <nick@nerdnetworks.org> | 2011-01-12 19:20:35 -0800 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2011-01-12 19:20:35 -0800 |
commit | c77bb3e71562daa68e9a195a0131b7cc04324784 (patch) | |
tree | 7d6c851463de22ca53174f8499ec74b53eecac52 /volk/lib/qa_utils.h | |
parent | c501dc110d3cc7cfcfff178fecb21f30ac9bd54c (diff) |
Volk: Working on a new QA architecture that doesn't require individual test programs.
Diffstat (limited to 'volk/lib/qa_utils.h')
-rw-r--r-- | volk/lib/qa_utils.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/volk/lib/qa_utils.h b/volk/lib/qa_utils.h new file mode 100644 index 0000000000..80323c4455 --- /dev/null +++ b/volk/lib/qa_utils.h @@ -0,0 +1,19 @@ +#ifndef VOLK_QA_UTILS_H +#define VOLK_QA_UTILS_H + +#include <stdlib.h> +#include <string> +#include <volk/volk.h> + +float uniform(void); +void random_floats(float *buf, unsigned n); + +bool run_volk_tests(const int[], void(*)(), std::string, float, int, int); + +#define VOLK_RUN_TESTS(func, tol, len, iter) run_volk_tests(func##_arch_defs, (void (*)())func##_manual, std::string(#func), tol, len, iter) + +typedef void (*volk_fn_2arg)(void *, void *, unsigned int, const char*); +typedef void (*volk_fn_3arg)(void *, void *, void *, unsigned int, const char*); +typedef void (*volk_fn_4arg)(void *, void *, void *, void *, unsigned int, const char*); + +#endif //VOLK_QA_UTILS_H |