From: Clayton Smith Date: Sat, 9 May 2020 14:34:30 +0000 (-0400) Subject: [PATCH 3/9] Test the rotator kernel with a realistic scalar X-Git-Tag: archive/raspbian/2.3.0-3+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0f68ff1ec51baddbea6873b2c36ed26785c747a2;p=volk.git [PATCH 3/9] Test the rotator kernel with a realistic scalar Gbp-Pq: Name 0003-Test-the-rotator-kernel-with-a-realistic-scalar.patch --- diff --git a/lib/kernel_tests.h b/lib/kernel_tests.h index ec2bb07..de340f4 100644 --- a/lib/kernel_tests.h +++ b/lib/kernel_tests.h @@ -32,6 +32,10 @@ std::vector init_test_list(volk_test_params_t test_params) volk_test_params_t test_params_power(test_params); test_params_power.set_scalar(2.5); + volk_test_params_t test_params_rotator(test_params); + test_params_rotator.set_scalar(std::polar(1.0f, 0.1f)); + test_params_rotator.set_tol(1e-3); + std::vector test_cases; QA(VOLK_INIT_PUPP(volk_64u_popcntpuppet_64u, volk_64u_popcnt, test_params)) QA(VOLK_INIT_PUPP(volk_64u_popcntpuppet_64u, volk_64u_popcnt, test_params)) @@ -40,8 +44,9 @@ std::vector init_test_list(volk_test_params_t test_params) QA(VOLK_INIT_PUPP(volk_32u_byteswappuppet_32u, volk_32u_byteswap, test_params)) QA(VOLK_INIT_PUPP(volk_32u_popcntpuppet_32u, volk_32u_popcnt_32u, test_params)) QA(VOLK_INIT_PUPP(volk_64u_byteswappuppet_64u, volk_64u_byteswap, test_params)) - QA(VOLK_INIT_PUPP( - volk_32fc_s32fc_rotatorpuppet_32fc, volk_32fc_s32fc_x2_rotator_32fc, test_params)) + QA(VOLK_INIT_PUPP(volk_32fc_s32fc_rotatorpuppet_32fc, + volk_32fc_s32fc_x2_rotator_32fc, + test_params_rotator)) QA(VOLK_INIT_PUPP( volk_8u_conv_k7_r2puppet_8u, volk_8u_x4_conv_k7_r2_8u, test_params.make_tol(0))) QA(VOLK_INIT_PUPP(