diff options
author | Nick Foster <nick@nerdnetworks.org> | 2011-04-16 10:47:10 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2011-04-16 10:47:10 -0700 |
commit | 668da8bd8874ae71a819d55f046e39c964a4270b (patch) | |
tree | 421c535410cfaa5193859b2fef035e655208b5a1 /volk/lib/qa_utils.h | |
parent | 8b04d29221719239b52a300a338513f05746ed7f (diff) |
Volk: manual funcs implemented, QA code runs. Barfs due to missing Orc arch.
Diffstat (limited to 'volk/lib/qa_utils.h')
-rw-r--r-- | volk/lib/qa_utils.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/volk/lib/qa_utils.h b/volk/lib/qa_utils.h index ed1ab373b6..5103589cca 100644 --- a/volk/lib/qa_utils.h +++ b/volk/lib/qa_utils.h @@ -3,6 +3,8 @@ #include <cstdlib> #include <string> +#include <volk/volk.h> +#include <volk/volk_common.h> struct volk_type_t { bool is_float; @@ -18,9 +20,9 @@ volk_type_t volk_type_from_string(std::string); float uniform(void); void random_floats(float *buf, unsigned n); -bool run_volk_tests(const char **, const int[], void(*)(), std::string, float, float, int, int); +bool run_volk_tests(struct volk_func_desc, void(*)(), std::string, float, float, int, int); -#define VOLK_RUN_TESTS(func, tol, scalar, len, iter) BOOST_CHECK_EQUAL(run_volk_tests(func##_indices, func##_arch_defs, (void (*)())func##_manual, std::string(#func), tol, scalar, len, iter), 0) +#define VOLK_RUN_TESTS(func, tol, scalar, len, iter) BOOST_CHECK_EQUAL(run_volk_tests(func##_get_func_desc(), (void (*)())func##_manual, std::string(#func), tol, scalar, len, iter), 0) typedef void (*volk_fn_1arg)(void *, unsigned int, const char*); //one input, operate in place typedef void (*volk_fn_2arg)(void *, void *, unsigned int, const char*); |