Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | mjames | 1 | #include "jtest.h" |
2 | #include "ref.h" |
||
3 | #include "arr_desc.h" |
||
4 | #include "fast_math_templates.h" |
||
5 | #include "fast_math_test_data.h" |
||
6 | #include "type_abbrev.h" |
||
7 | |||
8 | SQRT_TEST_TEMPLATE_ELT1(q31); |
||
9 | SQRT_TEST_TEMPLATE_ELT1(q15); |
||
10 | |||
11 | SIN_COS_TEST_TEMPLATE_ELT1(f32, float32_t, sin); |
||
12 | SIN_COS_TEST_TEMPLATE_ELT1(q31, q31_t, sin); |
||
13 | SIN_COS_TEST_TEMPLATE_ELT1(q15, q15_t, sin); |
||
14 | |||
15 | SIN_COS_TEST_TEMPLATE_ELT1(f32, float32_t, cos); |
||
16 | SIN_COS_TEST_TEMPLATE_ELT1(q31, q31_t, cos); |
||
17 | SIN_COS_TEST_TEMPLATE_ELT1(q15, q15_t, cos); |
||
18 | |||
19 | /*--------------------------------------------------------------------------------*/ |
||
20 | /* Collect all tests in a group */ |
||
21 | /*--------------------------------------------------------------------------------*/ |
||
22 | |||
23 | JTEST_DEFINE_GROUP(fast_math_tests) |
||
24 | { |
||
25 | /* |
||
26 | To skip a test, comment it out. |
||
27 | */ |
||
28 | JTEST_TEST_CALL(arm_sqrt_q31_test); |
||
29 | JTEST_TEST_CALL(arm_sqrt_q15_test); |
||
30 | |||
31 | JTEST_TEST_CALL(arm_sin_f32_test); |
||
32 | JTEST_TEST_CALL(arm_sin_q31_test); |
||
33 | JTEST_TEST_CALL(arm_sin_q15_test); |
||
34 | |||
35 | JTEST_TEST_CALL(arm_cos_f32_test); |
||
36 | JTEST_TEST_CALL(arm_cos_q31_test); |
||
37 | JTEST_TEST_CALL(arm_cos_q15_test); |
||
38 | } |