[PATCH 2/6] Allow for rounding error in volk_32fc_s32f_magnitude_16i
authorClayton Smith <argilo@gmail.com>
Fri, 8 Dec 2023 19:02:12 +0000 (14:02 -0500)
committerA. Maitland Bottoms <bottoms@debian.org>
Sat, 16 Dec 2023 14:31:28 +0000 (09:31 -0500)
Signed-off-by: Clayton Smith <argilo@gmail.com>
Gbp-Pq: Name 0002-Allow-for-rounding-error-in-volk_32fc_s32f_magnitude.patch

lib/kernel_tests.h

index 0f59de1fee6e6ecbbd4f303ef34ee168a8bdf7a1..ab85423e0b24118618674a2e8cdf2f16b1a62886 100644 (file)
@@ -113,7 +113,7 @@ std::vector<volk_test_case_t> init_test_list(volk_test_params_t test_params)
     QA(VOLK_INIT_TEST(volk_32fc_index_max_32u, test_params))
     QA(VOLK_INIT_TEST(volk_32fc_index_min_16u, test_params))
     QA(VOLK_INIT_TEST(volk_32fc_index_min_32u, test_params))
-    QA(VOLK_INIT_TEST(volk_32fc_s32f_magnitude_16i, test_params))
+    QA(VOLK_INIT_TEST(volk_32fc_s32f_magnitude_16i, test_params.make_tol(1)))
     QA(VOLK_INIT_TEST(volk_32fc_magnitude_32f, test_params_inacc_tenth))
     QA(VOLK_INIT_TEST(volk_32fc_magnitude_squared_32f, test_params))
     QA(VOLK_INIT_TEST(volk_32fc_x2_add_32fc, test_params))