projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix error reporting for dlsym with global symbols
[musl]
/
src
/
math
/
truncf.c
diff --git
a/src/math/truncf.c
b/src/math/truncf.c
index
209586e
..
0afcdfb
100644
(file)
--- a/
src/math/truncf.c
+++ b/
src/math/truncf.c
@@
-20,7
+20,7
@@
#include "libm.h"
#include "libm.h"
-static const float huge = 1.0e30
F
;
+static const float huge = 1.0e30
f
;
float truncf(float x)
{
float truncf(float x)
{
@@
-32,14
+32,14
@@
float truncf(float x)
if (j0 < 23) {
if (j0 < 0) { /* |x|<1, return 0*sign(x) */
/* raise inexact if x != 0 */
if (j0 < 23) {
if (j0 < 0) { /* |x|<1, return 0*sign(x) */
/* raise inexact if x != 0 */
- if (huge+x > 0.0
F
)
+ if (huge+x > 0.0
f
)
i0 &= 0x80000000;
} else {
i = 0x007fffff>>j0;
if ((i0&i) == 0)
return x; /* x is integral */
/* raise inexact */
i0 &= 0x80000000;
} else {
i = 0x007fffff>>j0;
if ((i0&i) == 0)
return x; /* x is integral */
/* raise inexact */
- if (huge+x > 0.0
F
)
+ if (huge+x > 0.0
f
)
i0 &= ~i;
}
} else {
i0 &= ~i;
}
} else {