Lines Matching +full:- +full:v

1 /* ef_pow.c -- float version of e_pow.c.
27 dp_h[] = { 0.0, 5.84960938e-01,}, /* 0x3f15c000 */
28 dp_l[] = { 0.0, 1.56322085e-06,}, /* 0x35d1cfdc */
33 /* poly coefs for (3/2)*(log(x)-2s-2/3*s**3 */
34 L1 = 6.0000002384e-01, /* 0x3f19999a */
35 L2 = 4.2857143283e-01, /* 0x3edb6db7 */
36 L3 = 3.3333334327e-01, /* 0x3eaaaaab */
37 L4 = 2.7272811532e-01, /* 0x3e8ba305 */
38 L5 = 2.3066075146e-01, /* 0x3e6c3255 */
39 L6 = 2.0697501302e-01, /* 0x3e53f142 */
40 P1 = 1.6666667163e-01, /* 0x3e2aaaab */
41 P2 = -2.7777778450e-03, /* 0xbb360b61 */
42 P3 = 6.6137559770e-05, /* 0x388ab355 */
43 P4 = -1.6533901999e-06, /* 0xb5ddea0e */
44 P5 = 4.1381369442e-08, /* 0x3331bb4c */
45 lg2 = 6.9314718246e-01, /* 0x3f317218 */
46 lg2_h = 6.93145752e-01, /* 0x3f317200 */
47 lg2_l = 1.42860654e-06, /* 0x35bfbe8c */
48 ovt = 4.2995665694e-08, /* -(128-log2(ovfl+.5ulp)) */
49 cp = 9.6179670095e-01, /* 0x3f76384f =2/(3ln2) */
50 cp_h = 9.61914062e-01, /* 0x3f764000 =head of cp */
51 cp_l = -1.17368574e-04, /* 0xb8f623c6 =tail of cp */
54 ivln2_l = 7.0526075433e-06; /* 0x36eca570 =1/ln2 tail*/
60 float y1, t1, t2, r, s, t, u, v, w; in powf() local
94 k = (iy >> 23) - 0x7f; /* exponent */ in powf()
95 j = iy >> (23 - k); in powf()
96 if ((j << (23 - k)) == iy) in powf()
97 yisint = 2 - (j & 1); in powf()
102 if (FLT_UWORD_IS_INFINITE(iy)) { /* y is +-inf */ in powf()
104 return one; /* +-1**+-inf = 1 */ in powf()
105 else if (ix > 0x3f800000) /* (|x|>1)**+-inf = inf,0 */ in powf()
107 else /* (|x|<1)**-,+inf = inf,0 */ in powf()
108 return (hy < 0) ? -y : zero; in powf()
110 if (iy == 0x3f800000) { /* y is +-1 */ in powf()
128 z = ax; /*x is +-inf,+-1*/ in powf()
132 if (((ix - 0x3f800000) | yisint) == 0) { in powf()
133 return __math_invalidf(x); /* (-1)**non-int is NaN */ in powf()
135 z = -z; /* (x<0)**odd = -(|x|**odd) */ in powf()
148 /* (x<0)**(non-int) is NaN */ in powf()
149 if (((((__uint32_t)hx >> 31) - 1) | yisint) == 0) in powf()
159 /* now |1-x| is tiny <= 2**-20, suffice to compute in powf()
160 log(x) by x-x^2/2+x^3/3-x^4/4 */ in powf()
161 t = ax - 1; /* t has 20 trailing zeros */ in powf()
163 ((float)0.5 - t * ((float)0.333333333333 - t * (float)0.25)); in powf()
165 v = t * ivln2_l - w * ivln2; in powf()
166 t1 = u + v; in powf()
169 t2 = v - (t1 - u); in powf()
176 n -= 24; in powf()
179 n += ((ix) >> 23) - 0x7f; in powf()
190 ix -= 0x00800000; in powf()
194 /* compute s = s_h+s_l = (x-1)/(x+1) or (x-1.5)/(x+1.5) */ in powf()
195 u = ax - bp[k]; /* bp[0]=1.0, bp[1]=1.5 */ in powf()
196 v = one / (ax + bp[k]); in powf()
197 s = u * v; in powf()
204 t_l = ax - (t_h - bp[k]); in powf()
205 s_l = v * ((u - s_h * t_h) - s_h * t_l); in powf()
215 t_l = r - ((t_h - (float)3.0) - s2); in powf()
216 /* u+v = s*(1+...) */ in powf()
218 v = s_l * t_h + t_l * s; in powf()
220 p_h = u + v; in powf()
223 p_l = v - (p_h - u); in powf()
231 t2 = z_l - (((t1 - t) - dp_h[k]) - z_h); in powf()
234 s = one; /* s (sign of result -ve**odd) = -1 else = 1 */ in powf()
235 if (((((__uint32_t)hx >> 31) - 1) | (yisint - 1)) == 0) in powf()
236 s = -one; /* (-ve)**(odd int) */ in powf()
241 p_l = (y - y1) * t1 + y * t2; in powf()
250 if (p_l + ovt > z - p_h) in powf()
256 if (p_l <= z - p_h) in powf()
262 k = (i >> 23) - 0x7f; in powf()
266 k = ((n & 0x7fffffff) >> 23) - 0x7f; /* new k for n */ in powf()
268 n = ((n & 0x007fffff) | 0x00800000) >> (23 - k); in powf()
270 n = -n; in powf()
271 p_h -= t; in powf()
277 v = (p_l - (t - p_h)) * lg2 + t * lg2_l; in powf()
278 z = u + v; in powf()
279 w = v - (z - u); in powf()
281 t1 = z - t * (P1 + t * (P2 + t * (P3 + t * (P4 + t * P5)))); in powf()
282 r = (z * t1) / (t1 - two) - (w + z * w); in powf()
283 z = one - (r - z); in powf()
295 #pragma GCC diagnostic ignored "-Wmissing-attributes"