aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/aarch64/fpu/erff_data.c
diff options
context:
space:
mode:
authorJoe Ramsay <Joe.Ramsay@arm.com>2024-11-01 15:48:54 +0000
committerWilco Dijkstra <wilco.dijkstra@arm.com>2024-11-01 16:10:41 +0000
commit2d82d781a539ce8e82178fc1fa2c99ae1884e7fe (patch)
treef12a3d4fae269805d922457e80a46873cfd60ee2 /sysdeps/aarch64/fpu/erff_data.c
parent6d477b8de8c3a84a061a78c05e5300143b297850 (diff)
downloadglibc-2d82d781a539ce8e82178fc1fa2c99ae1884e7fe.tar.xz
glibc-2d82d781a539ce8e82178fc1fa2c99ae1884e7fe.zip
AArch64: Remove SVE erf and erfc tables
By using a combination of mask-and-add instead of the shift-based index calculation the routines can share the same table as other variants with no performance degradation. The tables change name because of other changes in downstream AOR. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
Diffstat (limited to 'sysdeps/aarch64/fpu/erff_data.c')
-rw-r--r--sysdeps/aarch64/fpu/erff_data.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/aarch64/fpu/erff_data.c b/sysdeps/aarch64/fpu/erff_data.c
index 9a32940915..da38aed205 100644
--- a/sysdeps/aarch64/fpu/erff_data.c
+++ b/sysdeps/aarch64/fpu/erff_data.c
@@ -19,14 +19,14 @@
#include "vecmath_config.h"
-/* Lookup table used in erff.
+/* Lookup table used in vector erff.
For each possible rounded input r (multiples of 1/128), between
r = 0.0 and r = 4.0 (513 values):
- - the first entry __erff_data.tab.erf contains the values of erf(r),
- - the second entry __erff_data.tab.scale contains the values of
+ - the first entry __v_erff_data.tab.erf contains the values of erf(r),
+ - the second entry __v_erff_data.tab.scale contains the values of
2/sqrt(pi)*exp(-r^2). Note that indices 0 and 1 are never hit by the
algorithm, since lookup is performed only for x >= 1/64-1/512. */
-const struct erff_data __erff_data = {
+const struct v_erff_data __v_erff_data = {
.tab = { { 0x0.000000p+0, 0x1.20dd76p+0 },
{ 0x1.20dbf4p-7, 0x1.20d8f2p+0 },
{ 0x1.20d770p-6, 0x1.20cb68p+0 },