From 0b4165a41d49927b57daa53350d9d33b25475fac Mon Sep 17 00:00:00 2001 From: Joe Ramsay Date: Thu, 21 Jul 2022 13:56:01 +0100 Subject: pl/math: Add Vector/SVE cos. An implementation based on SVE trigonometric instructions. It relies on the same range reduction as Vector/Neon cos, with a slight modification of the shift. The maximum measured error is 2.11ULPs around x = 205.522. --- pl/math/test/mathbench_funcs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pl/math/test/mathbench_funcs.h') diff --git a/pl/math/test/mathbench_funcs.h b/pl/math/test/mathbench_funcs.h index 5b6a806..85ec906 100644 --- a/pl/math/test/mathbench_funcs.h +++ b/pl/math/test/mathbench_funcs.h @@ -17,6 +17,7 @@ F (log1pf, -0.9, 10.0) D (asinh, -10.0, 10.0) D (atan, -10.0, 10.0) {"atan2", 'd', 0, -10.0, 10.0, {.d = atan2_wrap}}, +D (cos, -3.1, 3.1) D (erf, -6,6) D (erfc, -6.0, 28.0) D (log10, 0.01, 11.1) @@ -89,6 +90,9 @@ VNF (_ZGVnN4v_log1pf, -0.9, 10.0) #if WANT_SVE_MATH SVF (__sv_cosf_x, -3.1, 3.1) SVF (_ZGVsMxv_cosf, -3.1, 3.1) + +SVD (__sv_cos_x, -3.1, 3.1) +SVD (_ZGVsMxv_cos, -3.1, 3.1) #endif #endif // clang-format on -- cgit v1.2.3