diff options
Diffstat (limited to 'sysdeps/ieee754/ldbl-opt')
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/Makefile | 8 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/configure | 12 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/nldbl-exp10m1.c | 8 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/nldbl-exp2m1.c | 8 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/nldbl-log10p1.c | 8 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-opt/nldbl-log1p.c | 1 |
6 files changed, 39 insertions, 6 deletions
diff --git a/sysdeps/ieee754/ldbl-opt/Makefile b/sysdeps/ieee754/ldbl-opt/Makefile index d1eda5d022..14fd715003 100644 --- a/sysdeps/ieee754/ldbl-opt/Makefile +++ b/sysdeps/ieee754/ldbl-opt/Makefile @@ -61,8 +61,10 @@ libnldbl-calls = \ erf \ erfc \ exp \ + exp10m1 \ exp2 \ exp10 \ + exp2m1 \ expm1 \ fabs \ fadd \ @@ -140,6 +142,7 @@ libnldbl-calls = \ log \ log2 \ log10 \ + log10p1 \ log1p \ log2p1 \ logb \ @@ -295,7 +298,9 @@ CFLAGS-nldbl-erf.c = -fno-builtin-erfl CFLAGS-nldbl-erfc.c = -fno-builtin-erfcl CFLAGS-nldbl-exp.c = -fno-builtin-expl CFLAGS-nldbl-exp10.c = -fno-builtin-exp10l +CFLAGS-nldbl-exp10m1.c = -fno-builtin-exp10m1l CFLAGS-nldbl-exp2.c = -fno-builtin-exp2l +CFLAGS-nldbl-exp2m1.c = -fno-builtin-exp2m1l CFLAGS-nldbl-expm1.c = -fno-builtin-expm1l CFLAGS-nldbl-fabs.c = -fno-builtin-fabsl CFLAGS-nldbl-fadd.c = -fno-builtin-faddl @@ -341,7 +346,8 @@ CFLAGS-nldbl-llrint.c = -fno-builtin-llrintl CFLAGS-nldbl-llround.c = -fno-builtin-llroundl CFLAGS-nldbl-log.c = -fno-builtin-logl CFLAGS-nldbl-log10.c = -fno-builtin-log10l -CFLAGS-nldbl-log1p.c = -fno-builtin-log1pl +CFLAGS-nldbl-log10p1.c = -fno-builtin-log10p1l +CFLAGS-nldbl-log1p.c = -fno-builtin-log1pl -fno-builtin-logp1l CFLAGS-nldbl-log2.c = -fno-builtin-log2l CFLAGS-nldbl-log2p1.c = -fno-builtin-log2p1l CFLAGS-nldbl-logb.c = -fno-builtin-logbl diff --git a/sysdeps/ieee754/ldbl-opt/configure b/sysdeps/ieee754/ldbl-opt/configure index 68d8d7b465..bc6552da0b 100644 --- a/sysdeps/ieee754/ldbl-opt/configure +++ b/sysdeps/ieee754/ldbl-opt/configure @@ -7,8 +7,8 @@ printf %s "checking whether $CC $CFLAGS supports -mlong-double-128... " >&6; } if test ${libc_cv_mlong_double_128+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mlong-double-128" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28,11 +28,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mlong_double_128=yes -else $as_nop - libc_cv_mlong_double_128=no +else case e in #( + e) libc_cv_mlong_double_128=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128" >&5 printf "%s\n" "$libc_cv_mlong_double_128" >&6; } diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-exp10m1.c b/sysdeps/ieee754/ldbl-opt/nldbl-exp10m1.c new file mode 100644 index 0000000000..3495263fc9 --- /dev/null +++ b/sysdeps/ieee754/ldbl-opt/nldbl-exp10m1.c @@ -0,0 +1,8 @@ +#include "nldbl-compat.h" + +double +attribute_hidden +exp10m1l (double x) +{ + return exp10m1 (x); +} diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-exp2m1.c b/sysdeps/ieee754/ldbl-opt/nldbl-exp2m1.c new file mode 100644 index 0000000000..2bc6066e0c --- /dev/null +++ b/sysdeps/ieee754/ldbl-opt/nldbl-exp2m1.c @@ -0,0 +1,8 @@ +#include "nldbl-compat.h" + +double +attribute_hidden +exp2m1l (double x) +{ + return exp2m1 (x); +} diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-log10p1.c b/sysdeps/ieee754/ldbl-opt/nldbl-log10p1.c new file mode 100644 index 0000000000..d00fc95570 --- /dev/null +++ b/sysdeps/ieee754/ldbl-opt/nldbl-log10p1.c @@ -0,0 +1,8 @@ +#include "nldbl-compat.h" + +double +attribute_hidden +log10p1l (double x) +{ + return log10p1 (x); +} diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-log1p.c b/sysdeps/ieee754/ldbl-opt/nldbl-log1p.c index 455b25a9f4..b0de985183 100644 --- a/sysdeps/ieee754/ldbl-opt/nldbl-log1p.c +++ b/sysdeps/ieee754/ldbl-opt/nldbl-log1p.c @@ -6,3 +6,4 @@ log1pl (double x) { return log1p (x); } +weak_alias (log1pl, logp1l) |