aboutsummaryrefslogtreecommitdiff
path: root/pl/math/test/mathbench_funcs.h
diff options
context:
space:
mode:
authorJoe Ramsay <Joe.Ramsay@arm.com>2022-07-21 13:56:01 +0100
committerJoe Ramsay <joe.ramsay@arm.com>2022-07-21 13:56:01 +0100
commit0b4165a41d49927b57daa53350d9d33b25475fac (patch)
tree3d20b013366d756168a0602b4b773da1f08b2b53 /pl/math/test/mathbench_funcs.h
parenta40716ffedba4fa94c1a0c3e88857740d86a00b0 (diff)
downloadarm-optimized-routines-0b4165a41d49927b57daa53350d9d33b25475fac.tar.gz
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.
Diffstat (limited to 'pl/math/test/mathbench_funcs.h')
-rw-r--r--pl/math/test/mathbench_funcs.h4
1 files changed, 4 insertions, 0 deletions
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