From 55eb99e9a9d840ba452b128be14d6529c2dde039 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 17 Jun 2024 13:48:13 +0000 Subject: Implement C23 log10p1 C23 adds various function families originally defined in TS 18661-4. Add the log10p1 functions (log10(1+x): like log1p, but for base-10 logarithms). This is directly analogous to the log2p1 implementation (except that whereas log2p1 has a smaller underflow range than log1p, log10p1 has a larger underflow range). The test inputs are copied from those for log1p and log2p1, plus a few more inputs in that wider underflow range. Tested for x86_64 and x86, and with build-many-glibcs.py. --- sysdeps/i386/i686/fpu/multiarch/libm-test-ulps | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'sysdeps/i386/i686/fpu/multiarch') diff --git a/sysdeps/i386/i686/fpu/multiarch/libm-test-ulps b/sysdeps/i386/i686/fpu/multiarch/libm-test-ulps index e2b2492e2f..8446b81af8 100644 --- a/sysdeps/i386/i686/fpu/multiarch/libm-test-ulps +++ b/sysdeps/i386/i686/fpu/multiarch/libm-test-ulps @@ -1378,6 +1378,30 @@ float: 1 float128: 1 ldouble: 1 +Function: "log10p1": +double: 1 +float: 1 +float128: 3 +ldouble: 2 + +Function: "log10p1_downward": +double: 1 +float: 1 +float128: 2 +ldouble: 4 + +Function: "log10p1_towardzero": +double: 1 +float: 1 +float128: 2 +ldouble: 4 + +Function: "log10p1_upward": +double: 1 +float: 1 +float128: 3 +ldouble: 3 + Function: "log1p": double: 1 float128: 3 -- cgit 1.4.1