Home
last modified time | relevance | path

Searched refs:absx (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Modules/
D_math.c91 double absx = fabs(x); in _Py_asinh() local
96 if (absx < two_pow_m28) { /* |x| < 2**-28 */ in _Py_asinh()
99 if (absx > two_pow_p28) { /* |x| > 2**28 */ in _Py_asinh()
100 w = log(absx)+ln2; in _Py_asinh()
102 else if (absx > 2.0) { /* 2 < |x| < 2**28 */ in _Py_asinh()
103 w = log(2.0*absx + 1.0 / (sqrt(x*x + 1.0) + absx)); in _Py_asinh()
107 w = m_log1p(absx + t / (1.0 + sqrt(1.0 + t))); in _Py_asinh()
133 double absx; in _Py_atanh() local
139 absx = fabs(x); in _Py_atanh()
140 if (absx >= 1.) { /* |x| >= 1 */ in _Py_atanh()
[all …]
Dmathmodule.c233 double absx, r, y, z, sqrtpow; in m_tgamma() local
258 absx = fabs(x); in m_tgamma()
261 if (absx < 1e-20) { in m_tgamma()
271 if (absx > 200.0) { in m_tgamma()
281 y = absx + lanczos_g_minus_half; in m_tgamma()
283 if (absx > lanczos_g_minus_half) { in m_tgamma()
288 double q = y - absx; in m_tgamma()
293 z = q - absx; in m_tgamma()
297 r = -pi / sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma()
299 if (absx < 140.0) { in m_tgamma()
[all …]
/external/python/cpython3/Modules/
D_math.c102 double absx = fabs(x); in _Py_asinh() local
107 if (absx < two_pow_m28) { /* |x| < 2**-28 */ in _Py_asinh()
110 if (absx > two_pow_p28) { /* |x| > 2**28 */ in _Py_asinh()
111 w = log(absx) + ln2; in _Py_asinh()
113 else if (absx > 2.0) { /* 2 < |x| < 2**28 */ in _Py_asinh()
114 w = log(2.0 * absx + 1.0 / (sqrt(x * x + 1.0) + absx)); in _Py_asinh()
118 w = m_log1p(absx + t / (1.0 + sqrt(1.0 + t))); in _Py_asinh()
147 double absx; in _Py_atanh() local
153 absx = fabs(x); in _Py_atanh()
154 if (absx >= 1.) { /* |x| >= 1 */ in _Py_atanh()
[all …]
Dmathmodule.c267 double absx, r, y, z, sqrtpow; in m_tgamma() local
293 absx = fabs(x); in m_tgamma()
296 if (absx < 1e-20) { in m_tgamma()
306 if (absx > 200.0) { in m_tgamma()
316 y = absx + lanczos_g_minus_half; in m_tgamma()
318 if (absx > lanczos_g_minus_half) { in m_tgamma()
323 double q = y - absx; in m_tgamma()
328 z = q - absx; in m_tgamma()
332 r = -pi / m_sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma()
334 if (absx < 140.0) { in m_tgamma()
[all …]
/external/python/cpython2/Python/
Dpymath.c72 double absx, y; in round() local
73 absx = fabs(x); in round()
74 y = floor(absx); in round()
75 if (absx - y >= 0.5) in round()
/external/python/cpython3/Python/
Dpymath.c74 double absx, y; in round() local
75 absx = fabs(x); in round()
76 y = floor(absx); in round()
77 if (absx - y >= 0.5) in round()
/external/wayland/cursor/
Dconvert_font.c253 int absx = glyph->hotx + x; in get_glyph_pixel() local
256 if (absx < 0 || absx >= glyph->width || in get_glyph_pixel()
261 unsigned char block = glyph->data[absy * stride + (absx/8)]; in get_glyph_pixel()
262 int idx = absx % 8; in get_glyph_pixel()
/external/swiftshader/src/Pipeline/
DShaderCore.cpp350 Float4 absx = Abs(x); in arcsin() local
351 …urn As<Float4>(As<Int4>(half_pi - Sqrt(Float4(1.0f) - absx) * (a0 + absx * (a1 + absx * (a2 + absx in arcsin()
381 Float4 absx = Abs(x); in arctan() local
382 Int4 O = CmpNLT(absx, Float4(1.0f)); in arctan()
383 …Float4 y = As<Float4>((O & As<Int4>(Float4(1.0f) / absx)) | (~O & As<Int4>(absx))); // FIXME: Vect… in arctan()
/external/swiftshader/src/Shader/
DShaderCore.cpp350 Float4 absx = Abs(x); in arcsin() local
351 …urn As<Float4>(As<Int4>(half_pi - Sqrt(Float4(1.0f) - absx) * (a0 + absx * (a1 + absx * (a2 + absx in arcsin()
381 Float4 absx = Abs(x); in arctan() local
382 Int4 O = CmpNLT(absx, Float4(1.0f)); in arctan()
383 …Float4 y = As<Float4>((O & As<Int4>(Float4(1.0f) / absx)) | (~O & As<Int4>(absx))); // FIXME: Vect… in arctan()