diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-11-15 08:37:58 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-11-15 08:37:58 -0500 |
commit | 8bb181622222f2ee3462c8b021bcae4fcdbbd37a (patch) | |
tree | 166a1be834c8cd5a4c2521d41d7ee506bd8c8e51 /src/math/modf.c | |
parent | update copyright file for recent contributions (diff) | |
parent | fenv: return FE_TONEAREST in dummy fegetround (diff) | |
download | grovel-8bb181622222f2ee3462c8b021bcae4fcdbbd37a.tar.gz grovel-8bb181622222f2ee3462c8b021bcae4fcdbbd37a.tar.xz |
Merge remote-tracking branch 'nsz/math'
Diffstat (limited to 'src/math/modf.c')
-rw-r--r-- | src/math/modf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/modf.c b/src/math/modf.c index de45069f..8f337ef0 100644 --- a/src/math/modf.c +++ b/src/math/modf.c @@ -1,5 +1,4 @@ -#include <math.h> -#include <stdint.h> +#include "libm.h" double modf(double x, double *iptr) { @@ -33,5 +32,6 @@ double modf(double x, double *iptr) } u.n &= ~mask; *iptr = u.x; - return x - *iptr; + STRICT_ASSIGN(double, x, x - *iptr); + return x; } |