author | Szabolcs Nagy <nsz@port70.net> | 2012年12月16日 20:28:43 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2012年12月16日 20:28:43 +0100 |
commit | c6383b7b10303457306932584fc23f24b5153a81 (patch) | |
tree | ebc0a95cb34bcb501060b1679f14a19c7d92c91c /src/math/exp2f.c | |
parent | d8a7619e371ff0f226200f6316abb46dd1192f3d (diff) | |
download | musl-c6383b7b10303457306932584fc23f24b5153a81.tar.gz |
-rw-r--r-- | src/math/exp2f.c | 4 |
diff --git a/src/math/exp2f.c b/src/math/exp2f.c index 279f32de..ea50db4a 100644 --- a/src/math/exp2f.c +++ b/src/math/exp2f.c @@ -97,11 +97,11 @@ float exp2f(float x) return x; } if (x >= 128) { - STRICT_ASSIGN(float, x, x * 0x1p127); + STRICT_ASSIGN(float, x, x * 0x1p127f); return x; } if (x <= -150) { - STRICT_ASSIGN(float, x, 0x1p-100*0x1p-100); + STRICT_ASSIGN(float, x, 0x1p-100f*0x1p-100f); return x; } } else if (ix <= 0x33000000) { /* |x| <= 0x1p-25 */ |