projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
code cleanup of named constants
[musl]
/
src
/
math
/
modf.c
diff --git
a/src/math/modf.c
b/src/math/modf.c
index
ff85b2a
..
cca3b65
100644
(file)
--- a/
src/math/modf.c
+++ b/
src/math/modf.c
@@
-21,8
+21,6
@@
#include "libm.h"
#include "libm.h"
-static const double one = 1.0;
-
double modf(double x, double *iptr)
{
int32_t i0,i1,j0;
double modf(double x, double *iptr)
{
int32_t i0,i1,j0;
@@
-51,7
+49,7
@@
double modf(double x, double *iptr)
*iptr = x;
return 0.0 / x;
}
*iptr = x;
return 0.0 / x;
}
- *iptr = x
*one
;
+ *iptr = x;
GET_HIGH_WORD(high, x);
INSERT_WORDS(x, high & 0x80000000, 0); /* return +-0 */
return x;
GET_HIGH_WORD(high, x);
INSERT_WORDS(x, high & 0x80000000, 0); /* return +-0 */
return x;