Subversion Repositories canSerial

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include "jtest.h"
  2. #include "complex_math_test_data.h"
  3. #include "arr_desc.h"
  4. #include "arm_math.h"           /* FUTs */
  5. #include "ref.h"                /* Reference Functions */
  6. #include "test_templates.h"
  7. #include "complex_math_templates.h"
  8. #include "type_abbrev.h"
  9.  
  10. #define JTEST_ARM_CMPLX_MAG_TEST(suffix, comparison_interface)  \
  11.     COMPLEX_MATH_DEFINE_TEST_TEMPLATE_BUF1_BLK(                 \
  12.         cmplx_mag,                                              \
  13.         suffix,                                                 \
  14.         TYPE_FROM_ABBREV(suffix),                               \
  15.         TYPE_FROM_ABBREV(suffix),                               \
  16.         comparison_interface)
  17.  
  18. JTEST_ARM_CMPLX_MAG_TEST(f32, COMPLEX_MATH_COMPARE_RE_INTERFACE);
  19. JTEST_ARM_CMPLX_MAG_TEST(q31, COMPLEX_MATH_SNR_COMPARE_RE_INTERFACE);
  20. JTEST_ARM_CMPLX_MAG_TEST(q15, COMPLEX_MATH_SNR_COMPARE_RE_INTERFACE);
  21.  
  22. /*--------------------------------------------------------------------------------*/
  23. /* Collect all tests in a group. */
  24. /*--------------------------------------------------------------------------------*/
  25.  
  26. JTEST_DEFINE_GROUP(cmplx_mag_tests)
  27. {
  28.     JTEST_TEST_CALL(arm_cmplx_mag_f32_test);
  29.     JTEST_TEST_CALL(arm_cmplx_mag_q31_test);
  30.     JTEST_TEST_CALL(arm_cmplx_mag_q15_test);
  31. }
  32.