diff options
author | nsz <nsz@port70.net> | 2012-03-13 20:24:23 +0100 |
---|---|---|
committer | nsz <nsz@port70.net> | 2012-03-13 20:24:23 +0100 |
commit | 8d0a6f7a1c47b280647f292e6864b85b72c71f2e (patch) | |
tree | 949de14dac812cbd118fdb8fc8d9941790ab2397 /src/math/log10f.c | |
parent | 9560b6b152efeb23cc4e570dbaea5ef333ac971f (diff) | |
download | musl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.tar.gz musl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.tar.bz2 musl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.tar.xz musl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.zip |
math cleanup: use 1.0f instead of (float)1.0
Diffstat (limited to 'src/math/log10f.c')
-rw-r--r-- | src/math/log10f.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/log10f.c b/src/math/log10f.c index 4175cce2..7e4ac9a8 100644 --- a/src/math/log10f.c +++ b/src/math/log10f.c @@ -53,8 +53,8 @@ float log10f(float x) SET_FLOAT_WORD(x, hx|(i^0x3f800000)); /* normalize x or x/2 */ k += i>>23; y = (float)k; - f = x - (float)1.0; - hfsq = (float)0.5*f*f; + f = x - 1.0f; + hfsq = 0.5f * f * f; r = __log1pf(f); // FIXME |