X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fmodff.c;h=90caf3164fb11f1f72b27992a1fa2486b790d032;hb=a7936f61b23100ac32f51776c5b3e52452c7598c;hp=84d0b82a56250bc36e9ee7083f9f179e3e5ad90a;hpb=f6ceccd92247575e4a35bc94f581a570b8052d43;p=musl 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; }