X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Fremainder.c;h=db176c882164ee5ea790c131c3e8a0fe1d5198f0;hp=c9b1b2b7034d682a4fa620e9c58d04d5b6fbc919;hb=5298ab468eb88cace2413703ac409009efaa8ca7;hpb=781e3284dddd0d9cc713603f4bd05442df78e09a diff --git a/src/math/remainder.c b/src/math/remainder.c index c9b1b2b..db176c8 100644 --- a/src/math/remainder.c +++ b/src/math/remainder.c @@ -39,6 +39,7 @@ double remainder(double x, double p) return (x*p)/(x*p); if (hx >= 0x7ff00000 || /* x not finite */ (hp >= 0x7ff00000 && (hp-0x7ff00000 | lp) != 0)) /* p is NaN */ + // FIXME: why long double? return ((long double)x*p)/((long double)x*p); if (hp <= 0x7fdfffff)