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/__log1pf.h | |
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/__log1pf.h')
-rw-r--r-- | src/math/__log1pf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/__log1pf.h b/src/math/__log1pf.h index 110acecb..99492c5a 100644 --- a/src/math/__log1pf.h +++ b/src/math/__log1pf.h @@ -24,12 +24,12 @@ static inline float __log1pf(float f) { float hfsq,s,z,R,w,t1,t2; - s = f/((float)2.0+f); + s = f/(2.0f + f); z = s*s; w = z*z; t1 = w*(Lg2+w*Lg4); t2 = z*(Lg1+w*Lg3); R = t2+t1; - hfsq = (float)0.5*f*f; + hfsq = 0.5f * f * f; return s*(hfsq+R); } |