X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Fremainderf.c;h=c17bb4f434d2f81eacc24f04838a26fc999c727d;hp=30875db1452fd39b4bfd2cc6337dbde2592ec0b1;hb=5298ab468eb88cace2413703ac409009efaa8ca7;hpb=781e3284dddd0d9cc713603f4bd05442df78e09a diff --git a/src/math/remainderf.c b/src/math/remainderf.c index 30875db..c17bb4f 100644 --- a/src/math/remainderf.c +++ b/src/math/remainderf.c @@ -33,6 +33,7 @@ float remainderf(float x, float p) if (hp == 0) /* p = 0 */ return (x*p)/(x*p); if (hx >= 0x7f800000 || hp > 0x7f800000) /* x not finite, p is NaN */ + // FIXME: why long double? return ((long double)x*p)/((long double)x*p); if (hp <= 0x7effffff)