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

123

/bionic/libm/upstream-freebsd/lib/msun/src/
H A 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 */
60 else return one/x-one; /* tanh(NaN) = NaN */
66 if(huge+x>one) return x; /* tanh(tiny) = tiny with inexact */
70 z = one - two/(t+two);
77 z = one - tiny; /* raise inexact flag */
H A 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 */
37 else return one/x-one; /* tanh(NaN) = NaN */
43 if(huge+x>one) return x; /* tanh(tiny) = tiny with inexact */
47 z = one - two/(t+two);
54 z = one - tiny; /* raise inexact flag */
H A Ds_asinh.c33 one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ variable
46 if(huge+x>one) return x; /* return x inexact except 0 */
52 w = __ieee754_log(2.0*t+one/(__ieee754_sqrt(x*x+one)+t));
55 w =log1p(fabs(x)+t/(one+__ieee754_sqrt(one+t)));
H A Ds_asinhf.c23 one = 1.0000000000e+00, /* 0x3F800000 */ variable
36 if(huge+x>one) return x; /* return x inexact except 0 */
42 w = __ieee754_logf((float)2.0*t+one/(__ieee754_sqrtf(x*x+one)+t));
45 w =log1pf(fabsf(x)+t/(one+__ieee754_sqrtf(one+t)));
H A De_acoshf.c23 one = 1.0, variable
43 return __ieee754_logf((float)2.0*x-one/(x+__ieee754_sqrtf(t-one)));
45 t = x-one;
H A De_acosh.c38 one = 1.0, variable
59 return __ieee754_log(2.0*x-one/(x+sqrt(t-one)));
61 t = x-one;
H A De_coshf.c22 static const float one = 1.0, half=0.5, huge = 1.0e30; variable
39 w = one+t;
40 if (ix<0x39800000) return one; /* cosh(tiny) = 1 */
41 return one+(t*t)/(w+w);
H A 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 */
62 if(ix<0x3ff00000) return h*(2.0*t-t*t/(t+one));
63 return h*(t+t/(t+one));
H A 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 */
43 if(ix<0x3f800000) return h*((float)2.0*t-t*t/(t+one));
44 return h*(t+t/(t+one));
H A Ds_asinhl.c54 one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ variable
79 if (huge + x > one) RETURNI(x); /* return x inexact except 0 */
85 w = logl(2.0*t+one/(sqrtl(x*x+one)+t));
88 w =log1pl(fabsl(x)+t/(one+sqrtl(one+t)));
H A Ds_atanf.c45 one = 1.0, variable
63 if(huge+x>one) return x; /* raise inexact */
70 id = 0; x = ((float)2.0*x-one)/((float)2.0+x);
72 id = 1; x = (x-one)/(x+one);
76 id = 2; x = (x-(float)1.5)/(one+(float)1.5*x);
H A Ds_erff.c27 one = 1, variable
89 return (float)(1-i)+one/x; /* erff(+-inf)=+-1 */
100 s = one+z*(qq1+z*(qq2+z*qq3));
105 s = fabsf(x)-one;
107 Q = one+s*(qa1+s*(qa2+s*qa3));
111 if(hx>=0) return one-tiny; else return tiny-one;
114 s = one/(x*x);
117 S=one+s*(sa1+s*(sa2+s*sa3));
120 S=one
[all...]
H A De_asinf.c23 one = 1.0000000000e+00, /* 0x3F800000 */ variable
48 if(huge+x>one) return x;/* return x with inexact if x!=0*/
52 q = one+t*qS1;
57 w = one-fabsf(x);
60 q = one+t*qS1;
H A De_sqrtf.c23 static const float one = 1.0, tiny=1.0e-30; variable
76 z = one-tiny; /* trigger inexact flag */
77 if (z>=one) {
78 z = one+tiny;
79 if (z>one)
H A De_atanh.c41 static const double one = 1.0, huge = 1e300; variable
60 t = 0.5*log1p(t+t*x/(one-x));
62 t = 0.5*log1p((x+x)/(one-x));
H A De_atanhf.c22 static const float one = 1.0, huge = 1e30; variable
41 t = (float)0.5*log1pf(t+t*x/(one-x));
43 t = (float)0.5*log1pf((x+x)/(one-x));
H A De_atanhl.c51 static const double one = 1.0, huge = 1e300; variable
70 t = 0.5*log1pl(t+t*x/(one-x));
72 t = 0.5*log1pl((x+x)/(one-x));
H A De_cosh.c43 static const double one = 1.0, half=0.5, huge = 1.0e300; variable
61 w = one+t;
63 return one+(t*t)/(w+w);
H A Dk_cos.c60 one = 1.00000000000000000000e+00, /* 0x3FF00000, 0x00000000 */ variable
77 w = one-hz;
78 return w + (((one-w)-hz) + (z*r-x*y));
H A De_acosf.c23 one = 1.0000000000e+00, /* 0x3F800000 */ variable
52 q = one+z*qS1;
56 z = (one+x)*(float)0.5;
58 q = one+z*qS1;
65 z = (one-x)*(float)0.5;
72 q = one+z*qS1;
H A Ds_atan.c20 * is further reduced to one of the following intervals and the
70 one = 1.0, variable
91 if(huge+x>one) return x; /* raise inexact */
98 id = 0; x = (2.0*x-one)/(2.0+x);
100 id = 1; x = (x-one)/(x+one);
104 id = 2; x = (x-1.5)/(one+1.5*x);
H A Ds_atanl.c29 one = 1.0, variable
56 if(huge+x>one) return x; /* raise inexact */
63 id = 0; x = (2.0*x-one)/(2.0+x);
65 id = 1; x = (x-one)/(x+one);
69 id = 2; x = (x-1.5)/(one+1.5*x);
H A Dk_cosf.c27 one = 1.0, variable
45 return ((one+z*C0) + w*C1) + (w*z)*r;
H A Ds_expm1f.c25 one = 1.0, variable
63 return tiny-one; /* return -1 */
92 r1 = one+hxs*(Q1+hxs*Q2);
103 else return one+(float)2.0*(x-e);
106 y = one-(e-x);
109 return y-one;
111 t = one;
119 y += one;
/bionic/libm/upstream-freebsd/lib/msun/ld128/
H A Dk_cosl.c33 one = 1.0; variable
59 w = one-hz;
60 return w + (((one-w)-hz) + (z*r-x*y));

Completed in 75 milliseconds

123