X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Fnexttoward.c;h=5e12c48bb9139c15225f06348a96a9a281b123aa;hp=6f4bae5eda20007f0c56c1355b7773dd6614bc79;hb=59c2bd747bce9b1e35c893b2ace9bea57523a901;hpb=43091ad6c77c394b7fcff618eed187129b0457fe diff --git a/src/math/nexttoward.c b/src/math/nexttoward.c index 6f4bae5..5e12c48 100644 --- a/src/math/nexttoward.c +++ b/src/math/nexttoward.c @@ -11,12 +11,12 @@ */ #include "libm.h" -#if LD64 +#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 double nexttoward(double x, long double y) { return nextafter(x, y); } -#elif LD80 || LD128 +#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384 double nexttoward(double x, long double y) { union IEEEl2bits uy;