[PATCH 1/6] Allow for rounding error in float-to-int conversions
authorClayton Smith <argilo@gmail.com>
Fri, 8 Dec 2023 17:25:56 +0000 (12:25 -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 0001-Allow-for-rounding-error-in-float-to-int-conversions.patch

lib/kernel_tests.h

index 5ef3324d6a6b407749fcf649490f1585831d8954..0f59de1fee6e6ecbbd4f303ef34ee168a8bdf7a1 100644 (file)
@@ -121,10 +121,10 @@ std::vector<volk_test_case_t> init_test_list(volk_test_params_t test_params)
     QA(VOLK_INIT_TEST(volk_32fc_x2_multiply_conjugate_32fc, test_params))
     QA(VOLK_INIT_TEST(volk_32fc_x2_divide_32fc, test_params))
     QA(VOLK_INIT_TEST(volk_32fc_conjugate_32fc, test_params))
-    QA(VOLK_INIT_TEST(volk_32f_s32f_convert_16i, test_params))
-    QA(VOLK_INIT_TEST(volk_32f_s32f_convert_32i, test_params))
+    QA(VOLK_INIT_TEST(volk_32f_s32f_convert_16i, test_params.make_tol(1)))
+    QA(VOLK_INIT_TEST(volk_32f_s32f_convert_32i, test_params.make_tol(1)))
     QA(VOLK_INIT_TEST(volk_32f_convert_64f, test_params))
-    QA(VOLK_INIT_TEST(volk_32f_s32f_convert_8i, test_params))
+    QA(VOLK_INIT_TEST(volk_32f_s32f_convert_8i, test_params.make_tol(1)))
     QA(VOLK_INIT_TEST(volk_32fc_convert_16ic, test_params))
     QA(VOLK_INIT_TEST(volk_32fc_s32f_power_spectrum_32f, test_params.make_tol(2e-6)))
     QA(VOLK_INIT_TEST(volk_32fc_x2_square_dist_32f, test_params))