Lines Matching full:float
1 /* s_log1pf.c -- float version of s_log1p.c.
2 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
16 #include <float.h>
21 static const float
33 static const float zero = 0.0;
34 static volatile float vzero = 0.0;
36 float
37 log1pf(float x) in log1pf()
39 float hfsq,f,c,s,z,R,u; in log1pf()
48 if(x==(float)-1.0) return -two25/vzero; /* log1p(-1)=+inf */ in log1pf()
56 return x - x*x*(float)0.5; in log1pf()
64 STRICT_ASSIGN(float,u,(float)1.0+x); in log1pf()
68 c = (k>0)? (float)1.0-(u-x):x-(u-(float)1.0); in log1pf()
91 f = u-(float)1.0; in log1pf()
93 hfsq=(float)0.5*f*f; in log1pf()
103 R = hfsq*((float)1.0-(float)0.66666666666666666*f); in log1pf()
107 s = f/((float)2.0+f); in log1pf()