summaryrefslogtreecommitdiff
path: root/src/math/truncf.c
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012-03-13 21:11:46 +0100
committernsz <nsz@port70.net>2012-03-13 21:11:46 +0100
commit32ca5ef3ff3069bdaae5f95be1900a3c3f831247 (patch)
tree2c766021fbcfe1bfebd43ec76b78155b9513ab2f /src/math/truncf.c
parent8d0a6f7a1c47b280647f292e6864b85b72c71f2e (diff)
downloadmusl-32ca5ef3ff3069bdaae5f95be1900a3c3f831247.tar.gz
math cleanup: use 1.0f instead of 1.0F
Diffstat (limited to 'src/math/truncf.c')
-rw-r--r--src/math/truncf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/truncf.c b/src/math/truncf.c
index 209586e1..0afcdfbf 100644
--- a/src/math/truncf.c
+++ b/src/math/truncf.c
@@ -20,7 +20,7 @@
#include "libm.h"
-static const float huge = 1.0e30F;
+static const float huge = 1.0e30f;
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 (huge+x > 0.0F)
+ if (huge+x > 0.0f)
i0 &= 0x80000000;
} else {
i = 0x007fffff>>j0;
if ((i0&i) == 0)
return x; /* x is integral */
/* raise inexact */
- if (huge+x > 0.0F)
+ if (huge+x > 0.0f)
i0 &= ~i;
}
} else {