diff options
author | Nick Foster <nick@nerdnetworks.org> | 2011-01-19 16:39:28 -0800 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2011-01-19 16:39:28 -0800 |
commit | be1b7d9ffb90aa9c750e6c6793f00dbc8bec486d (patch) | |
tree | 8ec9be4144a67f94fb2b11443d5747128b8c7092 /volk/lib/qa_utils.h | |
parent | d486ff4b4c039c8b3b06b6519839d522cf69be69 (diff) |
Volk: test suite supports scalar arguments and in-place operations
Diffstat (limited to 'volk/lib/qa_utils.h')
-rw-r--r-- | volk/lib/qa_utils.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/volk/lib/qa_utils.h b/volk/lib/qa_utils.h index 00883bf8ef..79c5d77787 100644 --- a/volk/lib/qa_utils.h +++ b/volk/lib/qa_utils.h @@ -4,6 +4,17 @@ #include <stdlib.h> #include <string> +struct volk_type_t { + bool is_float; + bool is_scalar; + bool is_signed; + bool is_complex; + int size; + std::string str; +}; + +volk_type_t volk_type_from_string(std::string); + float uniform(void); void random_floats(float *buf, unsigned n); @@ -11,9 +22,11 @@ bool run_volk_tests(const int[], void(*)(), std::string, float, int, int); #define VOLK_RUN_TESTS(func, tol, len, iter) BOOST_CHECK_EQUAL(run_volk_tests(func##_arch_defs, (void (*)())func##_manual, std::string(#func), tol, len, iter), 0) -typedef void (*volk_fn_1arg)(void *, unsigned int, const char*); +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*); 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*); +typedef void (*volk_fn_1arg_s32f)(void *, float, unsigned int, const char*); //one input vector, one scalar float input +typedef void (*volk_fn_2arg_s32f)(void *, void *, float, unsigned int, const char*); #endif //VOLK_QA_UTILS_H |