X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Flogl.c;fp=src%2Fmath%2Flogl.c;h=2139b2ab67732bbb3457ca49a87e5ebeafa1193d;hp=9dbbfee1c4137e16ce177cf73508c766baeae21e;hb=59c2bd747bce9b1e35c893b2ace9bea57523a901;hpb=43091ad6c77c394b7fcff618eed187129b0457fe diff --git a/src/math/logl.c b/src/math/logl.c index 9dbbfee..2139b2a 100644 --- a/src/math/logl.c +++ b/src/math/logl.c @@ -59,12 +59,12 @@ #include "libm.h" -#if LD64 +#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 long double logl(long double x) { return log(x); } -#elif LD80 +#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 /* Coefficients for log(1+x) = x - x**2/2 + x**3 P(x)/Q(x) * 1/sqrt(2) <= x < sqrt(2) * Theoretical peak relative error = 2.32e-20