From 15089e046b6c71bbefe29687fe4c7e569c9e1c03 Mon Sep 17 00:00:00 2001 From: "Paul E. Murphy" Date: Wed, 20 Jul 2016 15:20:51 -0500 Subject: ldbl-128: Rename 'long double' to '_Float128' Add a layer of macro indirection for long double files which need to be built using another typename. Likewise, add the L(num) macro used in a later patch to override real constants. These macros are only defined through the ldbl-128 math_ldbl.h header, thereby implicitly restricting these macros to machines which back long double with an IEEE binary128 format. Likewise, appropriate changes are made for the few files which indirectly include such ldbl-128 files. These changes produce identical binaries for s390x, aarch64, and ppc64. --- sysdeps/ieee754/ldbl-128/s_log1pl.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sysdeps/ieee754/ldbl-128/s_log1pl.c') diff --git a/sysdeps/ieee754/ldbl-128/s_log1pl.c b/sysdeps/ieee754/ldbl-128/s_log1pl.c index b348f41e55..ec99efb5e2 100644 --- a/sysdeps/ieee754/ldbl-128/s_log1pl.c +++ b/sysdeps/ieee754/ldbl-128/s_log1pl.c @@ -62,7 +62,7 @@ * Theoretical peak relative error = 5.3e-37, * relative peak error spread = 2.3e-14 */ -static const long double +static const _Float128 P12 = 1.538612243596254322971797716843006400388E-6L, P11 = 4.998469661968096229986658302195402690910E-1L, P10 = 2.321125933898420063925789532045674660756E1L, @@ -96,7 +96,7 @@ static const long double * Theoretical peak relative error = 1.1e-35, * relative peak error spread 1.1e-9 */ -static const long double +static const _Float128 R5 = -8.828896441624934385266096344596648080902E-1L, R4 = 8.057002716646055371965756206836056074715E1L, R3 = -2.024301798136027039250415126250455056397E3L, @@ -112,17 +112,17 @@ static const long double S0 = 1.701761051846631278975701529965589676574E6L; /* C1 + C2 = ln 2 */ -static const long double C1 = 6.93145751953125E-1L; -static const long double C2 = 1.428606820309417232121458176568075500134E-6L; +static const _Float128 C1 = 6.93145751953125E-1L; +static const _Float128 C2 = 1.428606820309417232121458176568075500134E-6L; -static const long double sqrth = 0.7071067811865475244008443621048490392848L; +static const _Float128 sqrth = 0.7071067811865475244008443621048490392848L; /* ln (2^16384 * (1 - 2^-113)) */ -static const long double zero = 0.0L; +static const _Float128 zero = 0.0L; -long double -__log1pl (long double xm1) +_Float128 +__log1pl (_Float128 xm1) { - long double x, y, z, r, s; + _Float128 x, y, z, r, s; ieee854_long_double_shape_type u; int32_t hx; int e; -- cgit 1.4.1