Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/third_party/ulib/musl/include/
A Dendian.h37 #define htobe16(x) __bswap16(x) argument
38 #define be16toh(x) __bswap16(x) argument
39 #define betoh16(x) __bswap16(x) argument
40 #define htobe32(x) __bswap32(x) argument
41 #define be32toh(x) __bswap32(x) argument
42 #define betoh32(x) __bswap32(x) argument
43 #define htobe64(x) __bswap64(x) argument
44 #define be64toh(x) __bswap64(x) argument
45 #define betoh64(x) __bswap64(x) argument
46 #define htole16(x) (uint16_t)(x) argument
[all …]
/third_party/ulib/musl/third_party/math/
A Datanl.c48 x * (aT[2] + x * (aT[4] + x * (aT[6] + x * (aT[8] + x * (aT[10] + x * aT[12]))))); in T_even()
52 return aT[1] + x * (aT[3] + x * (aT[5] + x * (aT[7] + x * (aT[9] + x * aT[11])))); in T_odd()
93 x * (aT[18] + x * (aT[20] + x * aT[22]))))))))))); in T_even()
107 x * (aT[19] + x * (aT[21] + x * aT[23]))))))))))); in T_odd()
135 x = fabsl(x); in atanl()
139 x = (2.0 * x - 1.0) / (2.0 + x); in atanl()
142 x = (x - 1.0) / (x + 1.0); in atanl()
147 x = (x - 1.5) / (1.0 + 1.5 * x); in atanl()
150 x = -1.0 / x; in atanl()
155 z = x * x; in atanl()
[all …]
A Dlog2l.c100 if (isnan(x)) in log2l()
101 return x; in log2l()
103 return x; in log2l()
106 return -1 / (x * x); /* -inf with divbyzero */ in log2l()
114 x = frexpl(x, &e); in log2l()
130 z = x * x; in log2l()
138 x = 2.0 * x - 1.0; in log2l()
140 x = x - 1.0; in log2l()
142 z = x * x; in log2l()
143 y = x * (z * __polevll(x, P, 6) / __p1evll(x, Q, 7)); in log2l()
[all …]
A Dlog10l.c109 if (isnan(x)) in log10l()
110 return x; in log10l()
113 return -1.0 / (x * x); in log10l()
114 return (x - x) / 0.0; in log10l()
122 x = frexpl(x, &e); in log10l()
137 x = z / y; in log10l()
138 z = x * x; in log10l()
146 x = 2.0 * x - 1.0; in log10l()
148 x = x - 1.0; in log10l()
150 z = x * x; in log10l()
[all …]
A Dtgammal.c151 w = 1.0 / x; in stirf()
168 v = powl(x, 0.5L * x - 0.25L); in stirf()
171 y = powl(x, x - 0.5L) / y; in stirf()
214 z *= x; in tgammal()
217 z /= x; in tgammal()
223 z /= x; in tgammal()
229 x -= 2.0; in tgammal()
238 return x / x; in tgammal()
240 x = -x; in tgammal()
241 q = z / (x * __polevll(x, SN, 8)); in tgammal()
[all …]
A Dlogl.c59 return log(x); in logl()
99 if (isnan(x)) in logl()
100 return x; in logl()
105 return -1 / (x * x); /* -inf with divbyzero */ in logl()
113 x = frexpl(x, &e); in logl()
129 z = x * x; in logl()
140 x = 2.0 * x - 1.0; in logl()
142 x = x - 1.0; in logl()
144 z = x * x; in logl()
145 y = x * (z * __polevll(x, P, 6) / __p1evll(x, Q, 6)); in logl()
[all …]
A Dexpm1l.c54 return expm1(x); in expm1l()
83 if (isnan(x)) in expm1l()
84 return x; in expm1l()
87 if (x == 0.0) in expm1l()
88 return x; in expm1l()
97 x -= px * C1; in expm1l()
98 x -= px * C2; in expm1l()
101 px = ((((P4 * x + P3) * x + P2) * x + P1) * x + P0) * x; in expm1l()
102 qx = ((((x + Q4) * x + Q3) * x + Q2) * x + Q1) * x + Q0; in expm1l()
103 xx = x * x; in expm1l()
[all …]
A Dlog1pl.c102 x = xm1 + 1.0; in log1pl()
107 return -1 / (x * x); /* -inf with divbyzero */ in log1pl()
113 x = frexpl(x, &e); in log1pl()
127 x = z / y; in log1pl()
128 z = x * x; in log1pl()
131 z = z + x; in log1pl()
140 x = 2.0 * x - 1.0; in log1pl()
145 x = x - 1.0; in log1pl()
149 z = x * x; in log1pl()
150 y = x * (z * __polevll(x, P, 6) / __p1evll(x, Q, 6)); in log1pl()
[all …]
A Datanf.c45 if (isnan(x)) in atanf()
46 return x; in atanf()
53 FORCE_EVAL(x * x); in atanf()
58 x = fabsf(x); in atanf()
62 x = (2.0f * x - 1.0f) / (2.0f + x); in atanf()
65 x = (x - 1.0f) / (x + 1.0f); in atanf()
70 x = (x - 1.5f) / (1.0f + 1.5f * x); in atanf()
73 x = -1.0f / x; in atanf()
78 z = x * x; in atanf()
84 return x - x * (s1 + s2); in atanf()
[all …]
A Dexpl.c72 return exp(x); in expl()
90 if (isnan(x)) in expl()
91 return x; in expl()
93 return x * 0x1p16383L; in expl()
95 return -0x1p-16445L / x; in expl()
102 x -= px * LN2HI; in expl()
103 x -= px * LN2LO; in expl()
108 xx = x * x; in expl()
111 x = 1.0 + 2.0 * x; in expl()
112 return scalbnl(x, k); in expl()
[all …]
A Datan.c71 if (isnan(x)) in atan()
72 return x; in atan()
80 return x; in atan()
84 x = fabs(x); in atan()
88 x = (2.0 * x - 1.0) / (2.0 + x); in atan()
91 x = (x - 1.0) / (x + 1.0); in atan()
96 x = (x - 1.5) / (1.0 + 1.5 * x); in atan()
99 x = -1.0 / x; in atan()
104 z = x * x; in atan()
110 return x - x * (s1 + s2); in atan()
[all …]
A Djn.c61 x = -x; in jn()
69 x = fabs(x); in jn()
90 temp = -cos(x) + sin(x); in jn()
93 temp = -cos(x) - sin(x); in jn()
96 temp = cos(x) - sin(x); in jn()
100 temp = cos(x) + sin(x); in jn()
247 return sign ? -y1(x) : y1(x); in yn()
265 temp = -sin(x) - cos(x); in yn()
268 temp = -sin(x) + cos(x); in yn()
271 temp = sin(x) + cos(x); in yn()
[all …]
A Dpowl.c179 if (x > 1.0 || x < -1.0) in powl()
185 if (x > 1.0 || x < -1.0) in powl()
239 return (x - x) / (x - x); /* (x<0)**(non-int) is NaN */ in powl()
243 x = -x; in powl()
252 x = frexpl(x, &i); in powl()
284 z = x * x; in powl()
285 w = x * (z * __polevll(x, P, 3) / __p1evll(x, Q, 3)); in powl()
294 z += x; in powl()
426 s = x; in powil()
446 x = 1.0 / x; in powil()
[all …]
A Dexpm1f.c30 float expm1f(float x) { in expm1f() argument
35 } u = {x}; in expm1f()
42 return x; in expm1f()
47 return x; in expm1f()
69 x = hi - lo; in expm1f()
73 FORCE_EVAL(x * x); in expm1f()
74 return x; in expm1f()
79 hfx = 0.5f * x; in expm1f()
80 hxs = x * hfx; in expm1f()
85 return x - (x * e - hxs); in expm1f()
[all …]
A Dsincosf.c32 GET_FLOAT_WORD(ix, x); in sincosf()
41 FORCE_EVAL(ix < 0x00100000 ? x / 0x1p120f : x + 0x1p120f); in sincosf()
42 *sin = x; in sincosf()
46 *sin = __sindf(x); in sincosf()
47 *cos = __cosdf(x); in sincosf()
64 *sin = -__sindf(sign ? x + s2pio2 : x - s2pio2); in sincosf()
65 *cos = -__cosdf(sign ? x + s2pio2 : x - s2pio2); in sincosf()
81 *sin = __sindf(sign ? x + s4pio2 : x - s4pio2); in sincosf()
82 *cos = __cosdf(sign ? x + s4pio2 : x - s4pio2); in sincosf()
88 *sin = *cos = x - x; in sincosf()
[all …]
A Dexp.c80 double exp(double x) { in exp() argument
85 GET_HIGH_WORD(hx, x); in exp()
91 if (isnan(x)) in exp()
92 return x; in exp()
95 x *= 0x1p1023; in exp()
96 return x; in exp()
114 x = hi - lo; in exp()
117 hi = x; in exp()
121 FORCE_EVAL(0x1p1023 + x); in exp()
122 return 1 + x; in exp()
[all …]
/third_party/ulib/jemalloc/include/jemalloc/internal/
A Dutil_inlines.h86 x |= x >> 1; in pow2_ceil_u64()
87 x |= x >> 2; in pow2_ceil_u64()
88 x |= x >> 4; in pow2_ceil_u64()
89 x |= x >> 8; in pow2_ceil_u64()
90 x |= x >> 16; in pow2_ceil_u64()
91 x |= x >> 32; in pow2_ceil_u64()
100 x |= x >> 1; in pow2_ceil_u32()
101 x |= x >> 2; in pow2_ceil_u32()
102 x |= x >> 4; in pow2_ceil_u32()
103 x |= x >> 8; in pow2_ceil_u32()
[all …]
A Datomic_inlines.h74 x = (uint64_t)(-(int64_t)x); in atomic_sub_u64()
75 t = x; in atomic_sub_u64()
116 return (atomic_fetch_add(a, x) + x); in atomic_add_u64()
123 return (atomic_fetch_sub(a, x) - x); in atomic_sub_u64()
208 return (InterlockedExchangeAdd64(p, x) + x); in atomic_add_u64()
283 x = (uint32_t)(-(int32_t)x); in atomic_sub_u32()
284 t = x; in atomic_sub_u32()
325 return (atomic_fetch_add(a, x) + x); in atomic_add_u32()
332 return (atomic_fetch_sub(a, x) - x); in atomic_sub_u32()
352 return (atomic_fetchadd_32(p, x) + x); in atomic_add_u32()
[all …]
/third_party/ulib/musl/src/math/
A Dtgamma.c35 x = x * 0.5; in sinpi()
36 x = 2 * (x - floor(x)); in sinpi()
39 n = 4 * x; in sinpi()
43 x *= pi; in sinpi()
143 if (x == floor(x)) { in tgamma()
155 if (floor(x) * 0.5 == floor(x * 0.5)) in tgamma()
163 absx = sign ? -x : x; in tgamma()
200 return x*x;
203 if (x == floor(x) && x <= 2) {
206 if (x <= 0)
[all …]
A Dasinhl.c4 long double asinhl(long double x) { in asinhl() argument
5 return asinh(x); in asinhl()
9 long double asinhl(long double x) { in asinhl() argument
10 union ldshape u = {x}; in asinhl()
16 x = u.f; in asinhl()
20 x = logl(x) + 0.693147180559945309417232121458176568L; in asinhl()
23 x = logl(2 * x + 1 / (sqrtl(x * x + 1) + x)); in asinhl()
26 x = log1pl(x + x * x / (sqrtl(x * x + 1) + 1)); in asinhl()
29 FORCE_EVAL(x + 0x1p120f); in asinhl()
31 return s ? -x : x; in asinhl()
[all …]
A Dasinh.c4 double asinh(double x) { in asinh() argument
8 } u = {.f = x}; in asinh()
14 x = u.f; in asinh()
18 x = log(x) + 0.693147180559945309417232121458176568; in asinh()
21 x = log(2 * x + 1 / (sqrt(x * x + 1) + x)); in asinh()
24 x = log1p(x + x * x / (sqrt(x * x + 1) + 1)); in asinh()
27 FORCE_EVAL(x + 0x1p120f); in asinh()
29 return s ? -x : x; in asinh()
A Dasinhf.c4 float asinhf(float x) { in asinhf() argument
8 } u = {.f = x}; in asinhf()
14 x = u.f; in asinhf()
18 x = logf(x) + 0.693147180559945309417232121458176568f; in asinhf()
21 x = logf(2 * x + 1 / (sqrtf(x * x + 1) + x)); in asinhf()
24 x = log1pf(x + x * x / (sqrtf(x * x + 1) + 1)); in asinhf()
27 FORCE_EVAL(x + 0x1p120f); in asinhf()
29 return s ? -x : x; in asinhf()
A Datanhl.c4 long double atanhl(long double x) { in atanhl() argument
5 return atanh(x); in atanhl()
9 long double atanhl(long double x) { in atanhl() argument
10 union ldshape u = {x}; in atanhl()
16 x = u.f; in atanhl()
22 FORCE_EVAL((float)x); in atanhl()
25 x = 0.5 * log1pl(2 * x + 2 * x * x / (1 - x)); in atanhl()
29 x = 0.5 * log1pl(2 * (x / (1 - x))); in atanhl()
31 return s ? -x : x; in atanhl()
/third_party/ulib/musl/third_party/complex/
A Dccoshf.c36 float x, y, h; in ccoshf() local
39 x = crealf(z); in ccoshf()
42 GET_FLOAT_WORD(hx, x); in ccoshf()
50 return CMPLXF(coshf(x), x * y); in ccoshf()
52 return CMPLXF(coshf(x) * cosf(y), sinhf(x) * sinf(y)); in ccoshf()
65 h = huge * x; in ccoshf()
75 return CMPLXF(x * x, copysignf(0, x) * y); in ccoshf()
76 return CMPLXF(x * x, copysignf(0, (x + x) * y)); in ccoshf()
84 return CMPLXF(x * x, x * (y - y)); in ccoshf()
85 return CMPLXF((x * x) * cosf(y), x * sinf(y)); in ccoshf()
[all …]
A Dccosh.c42 double x, y, h; in ccosh() local
45 x = creal(z); in ccosh()
48 EXTRACT_WORDS(hx, lx, x); in ccosh()
57 return CMPLX(cosh(x), x * y); in ccosh()
59 return CMPLX(cosh(x) * cos(y), sinh(x) * sin(y)); in ccosh()
72 h = huge * x; in ccosh()
97 return CMPLX(x * x, copysign(0, x) * y); in ccosh()
98 return CMPLX(x * x, copysign(0, (x + x) * y)); in ccosh()
123 return CMPLX(x * x, x * (y - y)); in ccosh()
124 return CMPLX((x * x) * cos(y), x * sin(y)); in ccosh()
[all …]

Completed in 44 milliseconds

12345678910>>...15