aboutsummaryrefslogtreecommitdiff
path: root/pl/math/test/mathbench_funcs.h
diff options
context:
space:
mode:
authorJoe Ramsay <Joe.Ramsay@arm.com>2022-07-12 09:13:09 +0100
committerJoe Ramsay <joe.ramsay@arm.com>2022-07-12 09:13:09 +0100
commitea3ad6c20ddd99aa1ee3f86e8f4bc5fe76cee35c (patch)
tree4ce195532f2d8bfafa38425b7b7ea51be0e7104d /pl/math/test/mathbench_funcs.h
parentd9a816bb547d3acc29e343c85dc568ff86add1c9 (diff)
downloadarm-optimized-routines-ea3ad6c20ddd99aa1ee3f86e8f4bc5fe76cee35c.tar.gz
pl/math: Add scalar asinhf
asinhf depends on logf, which has been copied over from the main math directory. The only modification was to change the name logf to optr_aor_log_f32 to resolve any ambiguity with libm. Worst-case error is about 3.4 ULP, at very large input. There are 4 intervals with slightly different error behaviour, as follows: Interval Worst-case accuracy (ulp) |x| < 2^-12 0 |x| < 1 1.3 |x| < sqrt(FLT_MAX) 2.0 |x| < infinity 3.4
Diffstat (limited to 'pl/math/test/mathbench_funcs.h')
-rw-r--r--pl/math/test/mathbench_funcs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pl/math/test/mathbench_funcs.h b/pl/math/test/mathbench_funcs.h
index 0f8e0ca..45ee627 100644
--- a/pl/math/test/mathbench_funcs.h
+++ b/pl/math/test/mathbench_funcs.h
@@ -5,6 +5,7 @@
* Copyright (c) 2022, Arm Limited.
* SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
*/
+F (asinhf, -10.0, 10.0)
F (atanf, -10.0, 10.0)
{"atan2f", 'f', 0, -10.0, 10.0, {.f = atan2f_wrap}},
F (erfcf, -4.0, 10.0)