projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add _ALL_SOURCE as an alias for _GNU_SOURCE/enable-everything
[musl]
/
src
/
math
/
modff.c
diff --git
a/src/math/modff.c
b/src/math/modff.c
index
84d0b82
..
90caf31
100644
(file)
--- a/
src/math/modff.c
+++ b/
src/math/modff.c
@@
-1,5
+1,4
@@
-#include <math.h>
-#include <stdint.h>
+#include "libm.h"
float modff(float x, float *iptr)
{
float modff(float x, float *iptr)
{
@@
-33,5
+32,6
@@
float modff(float x, float *iptr)
}
u.n &= ~mask;
*iptr = u.x;
}
u.n &= ~mask;
*iptr = u.x;
- return x - *iptr;
+ STRICT_ASSIGN(float, x, x - *iptr);
+ return x;
}
}