X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fmath%2Fmodff.c;h=90caf3164fb11f1f72b27992a1fa2486b790d032;hp=84d0b82a56250bc36e9ee7083f9f179e3e5ad90a;hb=c4359e01303da2755fe7e8033826b132eb3659b1;hpb=666271c105e4137bdfa195e217799d74143370d4 diff --git a/src/math/modff.c b/src/math/modff.c index 84d0b82a..90caf316 100644 --- a/src/math/modff.c +++ b/src/math/modff.c @@ -1,5 +1,4 @@ -#include -#include +#include "libm.h" float modff(float x, float *iptr) { @@ -33,5 +32,6 @@ float modff(float x, float *iptr) } u.n &= ~mask; *iptr = u.x; - return x - *iptr; + STRICT_ASSIGN(float, x, x - *iptr); + return x; }