aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/aarch64/fpu/erfc_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/erfc_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/erfc_data.c')
-rw-r--r--sysdeps/aarch64/fpu/erfc_data.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/aarch64/fpu/erfc_data.c b/sysdeps/aarch64/fpu/erfc_data.c
index 76a94e4681..8dc6a8c42c 100644
--- a/sysdeps/aarch64/fpu/erfc_data.c
+++ b/sysdeps/aarch64/fpu/erfc_data.c
@@ -19,14 +19,14 @@
#include "vecmath_config.h"
-/* Lookup table used in erfc.
+/* Lookup table used in vector erfc.
For each possible rounded input r (multiples of 1/128), between
r = 0.0 and r = ~27.0 (3488 values):
- - the first entry __erfc_data.tab.erfc contains the values of erfc(r),
- - the second entry __erfc_data.tab.scale contains the values of
+ - the first entry __v_erfc_data.tab.erfc contains the values of erfc(r),
+ - the second entry __v_erfc_data.tab.scale contains the values of
2/sqrt(pi)*exp(-r^2). Both values may go into subnormal range, therefore
they are scaled by a large enough value 2^128 (fits in 8bit). */
-const struct erfc_data __erfc_data = {
+const struct v_erfc_data __v_erfc_data = {
.tab = { { 0x1p128, 0x1.20dd750429b6dp128 },
{ 0x1.fb7c9030853b3p127, 0x1.20d8f1975c85dp128 },
{ 0x1.f6f9447be0743p127, 0x1.20cb67bd452c7p128 },