From: Clayton Smith Date: Fri, 8 Dec 2023 17:25:56 +0000 (-0500) Subject: [PATCH 1/6] Allow for rounding error in float-to-int conversions X-Git-Tag: archive/raspbian/3.1.0-3+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=01802748b5d21d08054d73d0fa1abc2e16b84e8b;p=volk.git [PATCH 1/6] Allow for rounding error in float-to-int conversions Signed-off-by: Clayton Smith Gbp-Pq: Name 0001-Allow-for-rounding-error-in-float-to-int-conversions.patch --- diff --git a/lib/kernel_tests.h b/lib/kernel_tests.h index 5ef3324..0f59de1 100644 --- a/lib/kernel_tests.h +++ b/lib/kernel_tests.h @@ -121,10 +121,10 @@ std::vector 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))