diff options
author | Joseph Myers <josmyers@redhat.com> | 2024-06-17 13:48:13 +0000 |
---|---|---|
committer | Joseph Myers <josmyers@redhat.com> | 2024-06-17 13:48:13 +0000 |
commit | 55eb99e9a9d840ba452b128be14d6529c2dde039 (patch) | |
tree | 6810f148fb04ca7217c67aa3f2e10b72d86a8d2d /sysdeps/x86_64 | |
parent | bb014f50c4a0c8d8db1ba5af55c104e430b5533d (diff) | |
download | glibc-55eb99e9a9d840ba452b128be14d6529c2dde039.tar.gz glibc-55eb99e9a9d840ba452b128be14d6529c2dde039.tar.xz glibc-55eb99e9a9d840ba452b128be14d6529c2dde039.zip |
Implement C23 log10p1
C23 adds various <math.h> 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.
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r-- | sysdeps/x86_64/fpu/libm-test-ulps | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps index 97876cadf2..f46ac59ffc 100644 --- a/sysdeps/x86_64/fpu/libm-test-ulps +++ b/sysdeps/x86_64/fpu/libm-test-ulps @@ -1759,6 +1759,30 @@ float: 1 Function: "log10_vlen8_avx2": float: 1 +Function: "log10p1": +double: 1 +float: 1 +float128: 3 +ldouble: 2 + +Function: "log10p1_downward": +double: 2 +float: 1 +float128: 2 +ldouble: 4 + +Function: "log10p1_towardzero": +double: 2 +float: 2 +float128: 2 +ldouble: 4 + +Function: "log10p1_upward": +double: 2 +float: 1 +float128: 3 +ldouble: 3 + Function: "log1p": double: 1 float: 1 |