diff options
author | Add joeram01 <joe.ramsay@arm.com> | 2022-10-31 12:23:43 +0000 |
---|---|---|
committer | Joe Ramsay <joe.ramsay@arm.com> | 2022-11-09 14:51:22 +0000 |
commit | 43140a886fa8f0907ec8545d57534cc4343b8b9c (patch) | |
tree | 0497615f732d68d9ab2341462c45bcc4b52d05ff /pl/math/test/mathbench_funcs.h | |
parent | 78a876ad601673d07fe4600d7ebfcf46587d819d (diff) | |
download | arm-optimized-routines-43140a886fa8f0907ec8545d57534cc4343b8b9c.tar.gz |
pl/math: Add scalar and vector/Neon coshf
New routines use single-precision exp, which has been copied from
math/. Scalar is accurate to 1.9 ULP, Neon to 2.4 ULP.
Also use the new expf helper in scalar sinhf.
Diffstat (limited to 'pl/math/test/mathbench_funcs.h')
-rw-r--r-- | pl/math/test/mathbench_funcs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pl/math/test/mathbench_funcs.h b/pl/math/test/mathbench_funcs.h index ee4440d..544a7d1 100644 --- a/pl/math/test/mathbench_funcs.h +++ b/pl/math/test/mathbench_funcs.h @@ -10,6 +10,7 @@ F (asinhf, -10.0, 10.0) F (atanf, -10.0, 10.0) {"atan2f", 'f', 0, -10.0, 10.0, {.f = atan2f_wrap}}, F (cosf, -3.1, 3.1) +F (coshf, -10.0, 10.0) F (erfcf, -4.0, 10.0) F (erff, -4.0, 4.0) F (expm1f, -9.9, 9.9) @@ -39,6 +40,7 @@ F (__s_atanf, -10.0, 10.0) D (__s_atan, -10.0, 10.0) {"__s_atan2f", 'f', 0, -10.0, 10.0, {.f = __s_atan2f_wrap}}, {"__s_atan2", 'd', 0, -10.0, 10.0, {.d = __s_atan2_wrap}}, +F (__s_coshf, -10.0, 10.0) F (__s_erff, -4.0, 4.0) D (__s_erf, -6.0, 6.0) F (__s_erfcf, -6.0, 28.0) @@ -58,6 +60,7 @@ VF (__v_atanf, -10.0, 10.0) VD (__v_atan, -10.0, 10.0) {"__v_atan2f", 'f', 'v', -10.0, 10.0, {.vf = __v_atan2f_wrap}}, {"__v_atan2", 'd', 'v', -10.0, 10.0, {.vd = __v_atan2_wrap}}, +VF (__v_coshf, -10.0, 10.0) VF (__v_erff, -4.0, 4.0) VD (__v_erf, -6.0, 6.0) VF (__v_erfcf, -6.0, 28.0) @@ -87,6 +90,9 @@ VND (_ZGVnN2v_atan, -10.0, 10.0) {"__vn_atan2", 'd', 'n', -10.0, 10.0, {.vnd = __vn_atan2_wrap}}, {"_ZGVnN2vv_atan2", 'd', 'n', -10.0, 10.0, {.vnd = _Z_atan2_wrap}}, +VNF (__vn_coshf, -10.0, 10.0) +VNF (_ZGVnN4v_coshf, -10.0, 10.0) + VNF (__vn_erff, -4.0, 4.0) VNF (_ZGVnN4v_erff, -4.0, 4.0) |