Lines Matching full:2
1 /* Double-precision 2^x function.
11 2. Redistributions in binary form must reproduce the above copyright
41 #define C3 __exp_data.exp2_poly[2]
63 y = 2 * (scale + scale * tmp); in specialcase()
73 range to avoid double rounding that can cause 0.5+E/2 ulp error where in specialcase()
103 /* double_t for better performance on targets with FLT_EVAL_METHOD==2. */ in exp2()
124 if (2 * asuint64 (x) > 2 * asuint64 (928.0)) in exp2()
129 /* exp2(x) = 2^(k/N) * 2^r, with 2^r in [2^(-1/2N),2^(1/2N)]. */ in exp2()
130 /* x = k/N + r, with int k and r in [-1/2N, 1/2N]. */ in exp2()
135 /* 2^(k/N) ~= scale * (1 + tail). */ in exp2()
136 idx = 2 * (ki % N); in exp2()
141 /* exp2(x) = 2^(k/N) * 2^r ~= scale + scale * (tail + 2^r - 1). */ in exp2()
145 /* Worst case error is less than 0.5+0.86/N+(abs poly error * 2^53) ulp. */ in exp2()
156 /* Note: tmp == 0 or |tmp| > 2^-65 and scale > 2^-928, so there in exp2()