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 /math/Makefile | |
parent | bb014f50c4a0c8d8db1ba5af55c104e430b5533d (diff) | |
download | glibc-55eb99e9a9d840ba452b128be14d6529c2dde039.zip glibc-55eb99e9a9d840ba452b128be14d6529c2dde039.tar.gz glibc-55eb99e9a9d840ba452b128be14d6529c2dde039.tar.bz2 |
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 'math/Makefile')
-rw-r--r-- | math/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index c55976c..95085d9 100644 --- a/math/Makefile +++ b/math/Makefile @@ -127,6 +127,7 @@ gen-libm-calls = \ s_fminimum_numF \ s_fminmagF \ s_iseqsigF \ + s_log10p1F \ s_log2p1F \ s_nanF \ s_nextdownF \ @@ -651,6 +652,7 @@ libm-test-funcs-auto = \ lgamma \ log \ log10 \ + log10p1 \ log1p \ log2 \ log2p1 \ @@ -962,6 +964,7 @@ tgmath3-macros = \ llround \ log \ log10 \ + log10p1 \ log1p \ log2 \ log2p1 \ @@ -1376,6 +1379,7 @@ CFLAGS-s_llrint.c += -fno-builtin-llrintl CFLAGS-s_llround.c += -fno-builtin-llroundl CFLAGS-e_log.c += -fno-builtin-logl CFLAGS-w_log10.c += -fno-builtin-log10l +CFLAGS-s_log10p1.c += -fno-builtin-log10p1l CFLAGS-w_log1p.c += -fno-builtin-log1pl -fno-builtin-logp1l CFLAGS-e_log2.c += -fno-builtin-log2l CFLAGS-s_log2p1.c += -fno-builtin-log2p1l @@ -1502,6 +1506,7 @@ CFLAGS-s_llrint.c += -fno-builtin-llrintf32x -fno-builtin-llrintf64 CFLAGS-s_llround.c += -fno-builtin-llroundf32x -fno-builtin-llroundf64 CFLAGS-e_log.c += -fno-builtin-logf32x -fno-builtin-logf64 CFLAGS-w_log10.c += -fno-builtin-log10f32x -fno-builtin-log10f64 +CFLAGS-s_log10p1.c += -fno-builtin-log10p1f32x -fno-builtin-log10p1f64 CFLAGS-w_log1p.c += -fno-builtin-log1pf32x -fno-builtin-log1pf64 -fno-builtin-logp1f32x -fno-builtin-logp1f64 CFLAGS-e_log2.c += -fno-builtin-log2f32x -fno-builtin-log2f64 CFLAGS-s_log2p1.c += -fno-builtin-log2p1f32x -fno-builtin-log2p1f64 @@ -1617,6 +1622,7 @@ CFLAGS-s_llrintf.c += -fno-builtin-llrintf32 CFLAGS-s_llroundf.c += -fno-builtin-llroundf32 CFLAGS-e_logf.c += -fno-builtin-logf32 CFLAGS-w_log10f.c += -fno-builtin-log10f32 +CFLAGS-s_log10p1f.c += -fno-builtin-log10p1f32 CFLAGS-w_log1pf.c += -fno-builtin-log1pf32 -fno-builtin-logp1f32 CFLAGS-e_log2f.c += -fno-builtin-log2f32 CFLAGS-s_log2p1f.c += -fno-builtin-log2p1f32 |