Home
last modified time | relevance | path

Searched refs:one (Results 1 – 25 of 67) sorted by relevance

123

/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_tanhf.c23 static const float one=1.0, two=2.0, huge = 1.0e30; variable
36 if (jx>=0) return one/x+one; /* tanh(+-inf)=+-1 */ in tanhf()
37 else return one/x-one; /* tanh(NaN) = NaN */ in tanhf()
43 if(huge+x>one) return x; /* tanh(tiny) = tiny with inexact */ in tanhf()
47 z = one - two/(t+two); in tanhf()
54 z = one - tiny; /* raise inexact flag */ in tanhf()
Ds_tanh.c46 static const double one = 1.0, two = 2.0, huge = 1.0e300; variable
59 if (jx>=0) return one/x+one; /* tanh(+-inf)=+-1 */ in tanh()
60 else return one/x-one; /* tanh(NaN) = NaN */ in tanh()
66 if(huge+x>one) return x; /* tanh(tiny) = tiny with inexact */ in tanh()
70 z = one - two/(t+two); in tanh()
77 z = one - tiny; /* raise inexact flag */ in tanh()
Ds_erff.c27 one = 1, variable
89 return (float)(1-i)+one/x; /* erff(+-inf)=+-1 */ in erff()
100 s = one+z*(qq1+z*(qq2+z*qq3)); in erff()
105 s = fabsf(x)-one; in erff()
107 Q = one+s*(qa1+s*(qa2+s*qa3)); in erff()
111 if(hx>=0) return one-tiny; else return tiny-one; in erff()
114 s = one/(x*x); in erff()
117 S=one+s*(sa1+s*(sa2+s*sa3)); in erff()
120 S=one+s*(sb1+s*(sb2+s*sb3)); in erff()
124 if(hx>=0) return one-r/x; else return r/x-one; in erff()
[all …]
Ds_asinhf.c23 one = 1.0000000000e+00, /* 0x3F800000 */ variable
36 if(huge+x>one) return x; /* return x inexact except 0 */ in asinhf()
42 w = __ieee754_logf((float)2.0*t+one/(__ieee754_sqrtf(x*x+one)+t)); in asinhf()
45 w =log1pf(fabsf(x)+t/(one+__ieee754_sqrtf(one+t))); in asinhf()
Ds_asinh.c33 one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ variable
46 if(huge+x>one) return x; /* return x inexact except 0 */ in asinh()
52 w = __ieee754_log(2.0*t+one/(__ieee754_sqrt(x*x+one)+t)); in asinh()
55 w =log1p(fabs(x)+t/(one+__ieee754_sqrt(one+t))); in asinh()
Ds_erf.c119 one = 1, variable
205 return (double)(1-i)+one/x; /* erf(+-inf)=+-1 */ in erf()
216 s = one+z*(qq1+z*(qq2+z*(qq3+z*(qq4+z*qq5)))); in erf()
221 s = fabs(x)-one; in erf()
223 Q = one+s*(qa1+s*(qa2+s*(qa3+s*(qa4+s*(qa5+s*qa6))))); in erf()
227 if(hx>=0) return one-tiny; else return tiny-one; in erf()
230 s = one/(x*x); in erf()
233 S=one+s*(sa1+s*(sa2+s*(sa3+s*(sa4+s*(sa5+s*(sa6+s*(sa7+ in erf()
237 S=one+s*(sb1+s*(sb2+s*(sb3+s*(sb4+s*(sb5+s*(sb6+s*sb7)))))); in erf()
242 if(hx>=0) return one-r/x; else return r/x-one; in erf()
[all …]
Ds_asinhl.c54 one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ variable
79 if (huge + x > one) RETURNI(x); /* return x inexact except 0 */ in asinhl()
85 w = logl(2.0*t+one/(sqrtl(x*x+one)+t)); in asinhl()
88 w =log1pl(fabsl(x)+t/(one+sqrtl(one+t))); in asinhl()
De_acoshf.c23 one = 1.0, variable
43 return __ieee754_logf((float)2.0*x-one/(x+__ieee754_sqrtf(t-one))); in __ieee754_acoshf()
45 t = x-one; in __ieee754_acoshf()
Ds_atanf.c45 one = 1.0, variable
63 if(huge+x>one) return x; /* raise inexact */ in atanf()
70 id = 0; x = ((float)2.0*x-one)/((float)2.0+x); in atanf()
72 id = 1; x = (x-one)/(x+one); in atanf()
76 id = 2; x = (x-(float)1.5)/(one+(float)1.5*x); in atanf()
De_j0f.c26 one = 1.0, variable
49 if(ix>=0x7f800000) return one/(x*x); in __ieee754_j0f()
73 if(huge+x>one) { /* raise inexact if x != 0 */ in __ieee754_j0f()
74 if(ix<0x32000000) return one; /* |x|<2**-27 */ in __ieee754_j0f()
75 else return one - (float)0.25*x*x; in __ieee754_j0f()
80 s = one+z*(S01+z*(S02+z*(S03+z*S04))); in __ieee754_j0f()
82 return one + z*((float)-0.25+(r/s)); in __ieee754_j0f()
85 return((one+u)*(one-u)+z*(r/s)); in __ieee754_j0f()
111 if(ix>=0x7f800000) return one/(x+x*x); in __ieee754_y0f()
112 if(ix==0) return -one/zero; in __ieee754_y0f()
[all …]
De_acosh.c38 one = 1.0, variable
59 return __ieee754_log(2.0*x-one/(x+sqrt(t-one))); in __ieee754_acosh()
61 t = x-one; in __ieee754_acosh()
De_coshf.c22 static const float one = 1.0, half=0.5, huge = 1.0e30; variable
39 w = one+t; in __ieee754_coshf()
40 if (ix<0x39800000) return one; /* cosh(tiny) = 1 */ in __ieee754_coshf()
41 return one+(t*t)/(w+w); in __ieee754_coshf()
De_lgammaf_r.c28 one = 1, variable
113 case 4: y = __kernel_sindf(pi*(one-y)); break; in sin_pif()
140 return one/vzero; in __ieee754_lgammaf_r()
148 return one/vzero; in __ieee754_lgammaf_r()
150 if(t==zero) return one/vzero; /* -integer */ in __ieee754_lgammaf_r()
162 if(ix>=0x3f3b4a20) {y = one-x; i= 0;} in __ieee754_lgammaf_r()
163 else if(ix>=0x3e6d3308) {y= x-(tc-one); i=1;} in __ieee754_lgammaf_r()
169 else {y=x-one;i=2;} in __ieee754_lgammaf_r()
183 p2 = one+y*(v1+y*(v2+y*v3)); in __ieee754_lgammaf_r()
192 q = one+y*(r1+y*(r2+y*r3)); in __ieee754_lgammaf_r()
[all …]
De_sinhf.c22 static const float one = 1.0, shuge = 1.0e37; variable
41 if(shuge+x>one) return x;/* sinh(tiny) = tiny with inexact */ in __ieee754_sinhf()
43 if(ix<0x3f800000) return h*((float)2.0*t-t*t/(t+one)); in __ieee754_sinhf()
44 return h*(t+t/(t+one)); in __ieee754_sinhf()
De_j0.c69 one = 1.0, variable
92 if(ix>=0x7ff00000) return one/(x*x); in __ieee754_j0()
116 if(huge+x>one) { /* raise inexact if x != 0 */ in __ieee754_j0()
117 if(ix<0x3e400000) return one; /* |x|<2**-27 */ in __ieee754_j0()
118 else return one - 0.25*x*x; in __ieee754_j0()
123 s = one+z*(S01+z*(S02+z*(S03+z*S04))); in __ieee754_j0()
125 return one + z*(-0.25+(r/s)); in __ieee754_j0()
128 return((one+u)*(one-u)+z*(r/s)); in __ieee754_j0()
154 if(ix>=0x7ff00000) return one/(x+x*x); in __ieee754_y0()
155 if((ix|lx)==0) return -one/zero; in __ieee754_y0()
[all …]
Ds_atanl.c29 one = 1.0, variable
56 if(huge+x>one) return x; /* raise inexact */ in atanl()
63 id = 0; x = (2.0*x-one)/(2.0+x); in atanl()
65 id = 1; x = (x-one)/(x+one); in atanl()
69 id = 2; x = (x-1.5)/(one+1.5*x); in atanl()
Ds_expm1f.c25 one = 1.0, variable
63 return tiny-one; /* return -1 */ in expm1f()
92 r1 = one+hxs*(Q1+hxs*Q2); in expm1f()
103 else return one+(float)2.0*(x-e); in expm1f()
106 y = one-(e-x); in expm1f()
109 return y-one; in expm1f()
111 t = one; in expm1f()
119 y += one; in expm1f()
De_sinh.c40 static const double one = 1.0, shuge = 1.0e307; variable
60 if(shuge+x>one) return x;/* sinh(tiny) = tiny with inexact */ in __ieee754_sinh()
62 if(ix<0x3ff00000) return h*(2.0*t-t*t/(t+one)); in __ieee754_sinh()
63 return h*(t+t/(t+one)); in __ieee754_sinh()
De_asinf.c23 one = 1.0000000000e+00, /* 0x3F800000 */ variable
48 if(huge+x>one) return x;/* return x with inexact if x!=0*/ in __ieee754_asinf()
52 q = one+t*qS1; in __ieee754_asinf()
57 w = one-fabsf(x); in __ieee754_asinf()
60 q = one+t*qS1; in __ieee754_asinf()
De_sqrtf.c23 static const float one = 1.0, tiny=1.0e-30; variable
76 z = one-tiny; /* trigger inexact flag */ in __ieee754_sqrtf()
77 if (z>=one) { in __ieee754_sqrtf()
78 z = one+tiny; in __ieee754_sqrtf()
79 if (z>one) in __ieee754_sqrtf()
Ds_atan.c70 one = 1.0, variable
91 if(huge+x>one) return x; /* raise inexact */ in atan()
98 id = 0; x = (2.0*x-one)/(2.0+x); in atan()
100 id = 1; x = (x-one)/(x+one); in atan()
104 id = 2; x = (x-1.5)/(one+1.5*x); in atan()
Ds_expm1.c117 one = 1.0, variable
157 return tiny-one; /* return -1 */ in expm1()
186 r1 = one+hxs*(Q1+hxs*(Q2+hxs*(Q3+hxs*(Q4+hxs*Q5)))); in expm1()
197 else return one+2.0*(x-e); in expm1()
200 y = one-(e-x); in expm1()
203 return y-one; in expm1()
205 t = one; in expm1()
213 y += one; in expm1()
De_acosf.c23 one = 1.0000000000e+00, /* 0x3F800000 */ variable
52 q = one+z*qS1; in __ieee754_acosf()
56 z = (one+x)*(float)0.5; in __ieee754_acosf()
58 q = one+z*qS1; in __ieee754_acosf()
65 z = (one-x)*(float)0.5; in __ieee754_acosf()
72 q = one+z*qS1; in __ieee754_acosf()
De_acoshl.c52 one = 1.0; variable
84 RETURNI(logl(2.0*x-one/(x+sqrtl(t-one)))); in acoshl()
86 t = x-one; in acoshl()
De_lgamma_r.c93 one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ variable
192 case 4: y = __kernel_sin(pi*(one-y),zero,0); break; in sin_pi()
219 return one/vzero; in __ieee754_lgamma_r()
227 return one/vzero; in __ieee754_lgamma_r()
229 if(t==zero) return one/vzero; /* -integer */ in __ieee754_lgamma_r()
241 if(ix>=0x3FE76944) {y = one-x; i= 0;} in __ieee754_lgamma_r()
242 else if(ix>=0x3FCDA661) {y= x-(tc-one); i=1;} in __ieee754_lgamma_r()
248 else {y=x-one;i=2;} in __ieee754_lgamma_r()
267 p2 = one+y*(v1+y*(v2+y*(v3+y*(v4+y*v5)))); in __ieee754_lgamma_r()
276 q = one+y*(r1+y*(r2+y*(r3+y*(r4+y*(r5+y*r6))))); in __ieee754_lgamma_r()
[all …]

123