Home
last modified time | relevance | path

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

/third_party/python/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.c293 double absx, r, y, z, sqrtpow; in m_tgamma() local
319 absx = fabs(x); in m_tgamma()
322 if (absx < 1e-20) { in m_tgamma()
332 if (absx > 200.0) { in m_tgamma()
342 y = absx + lanczos_g_minus_half; in m_tgamma()
344 if (absx > lanczos_g_minus_half) { in m_tgamma()
349 double q = y - absx; in m_tgamma()
354 z = q - absx; in m_tgamma()
358 r = -pi / m_sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma()
360 if (absx < 140.0) { in m_tgamma()
[all …]
/third_party/musl/porting/liteos_a/kernel/src/math/
Dtgamma.c111 double absx, y; in tgamma() local
146 absx = sign ? -x : x; in tgamma()
149 y = absx + gmhalf; in tgamma()
150 if (absx > gmhalf) { in tgamma()
151 dy = y - absx; in tgamma()
155 dy -= absx; in tgamma()
158 z = absx - 0.5; in tgamma()
159 r = S(absx) * exp(-y); in tgamma()
163 r = -pi / (sinpi(absx) * absx * r); in tgamma()
176 double r, absx;
[all …]
Dsinhf.c7 float t, h, absx; in sinhf() local
14 absx = u.f; in sinhf()
19 t = expm1f(absx); in sinhf()
29 t = __expo2f(absx, 2*h); in sinhf()
Dsinh.c11 double t, h, absx; in sinh() local
18 absx = u.f; in sinh()
23 t = expm1(absx); in sinh()
37 t = __expo2(absx, 2*h); in sinh()
Dsinhl.c13 long double h, t, absx; in sinhl() local
20 absx = u.f; in sinhl()
24 t = expm1l(absx); in sinhl()
34 t = expl(0.5*absx); in sinhl()
Dmodfl.c22 long double absx; in modfl() local
40 absx = s ? -x : x; in modfl()
41 y = absx + toint - toint - absx; in modfl()
/third_party/musl/src/math/
Dtgamma.c111 double absx, y; in tgamma() local
146 absx = sign ? -x : x; in tgamma()
149 y = absx + gmhalf; in tgamma()
150 if (absx > gmhalf) { in tgamma()
151 dy = y - absx; in tgamma()
155 dy -= absx; in tgamma()
158 z = absx - 0.5; in tgamma()
159 r = S(absx) * exp(-y); in tgamma()
163 r = -pi / (sinpi(absx) * absx * r); in tgamma()
176 double r, absx;
[all …]
Dsinhf.c7 float t, h, absx; in sinhf() local
14 absx = u.f; in sinhf()
19 t = expm1f(absx); in sinhf()
29 t = __expo2f(absx, 2*h); in sinhf()
Dsinh.c11 double t, h, absx; in sinh() local
18 absx = u.f; in sinh()
23 t = expm1(absx); in sinh()
37 t = __expo2(absx, 2*h); in sinh()
Dsinhl.c13 long double h, t, absx; in sinhl() local
20 absx = u.f; in sinhl()
24 t = expm1l(absx); in sinhl()
34 t = expl(0.5*absx); in sinhl()
Dmodfl.c22 long double absx; in modfl() local
40 absx = s ? -x : x; in modfl()
41 y = absx + toint - toint - absx; in modfl()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DOptimalIntrinsics.cpp108 Float4 absx = Abs(x); in Asin_4_terms() local
109 …urn As<Float4>(As<Int4>(half_pi - Sqrt(Float4(1.0f) - absx) * (a0 + absx * (a1 + absx * (a2 + absx in Asin_4_terms()
126 Float4 absx = Abs(x); in Asin_8_terms() local
127 …lf_pi - Sqrt(Float4(1.0f) - absx) * (a0 + absx * (a1 + absx * (a2 + absx * (a3 + absx * (a4 + absx in Asin_8_terms()
145 Float4 absx = Abs(x); in Atan() local
146 Int4 O = CmpNLT(absx, Float4(1.0f)); in Atan()
147 …Float4 y = As<Float4>((O & As<Int4>(Float4(1.0f) / absx)) | (~O & As<Int4>(absx))); // FIXME: Vec… in Atan()
/third_party/python/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()
/third_party/libinput/src/
Devdev.h881 const struct input_absinfo *absx, *absy; in evdev_device_unit_delta_to_mm() local
891 absx = device->abs.absinfo_x; in evdev_device_unit_delta_to_mm()
894 mm.x = 1.0 * units->x/absx->resolution; in evdev_device_unit_delta_to_mm()
909 const struct input_absinfo *absx, *absy; in evdev_device_units_to_mm() local
919 absx = device->abs.absinfo_x; in evdev_device_units_to_mm()
922 mm.x = (units->x - absx->minimum)/absx->resolution; in evdev_device_units_to_mm()
937 const struct input_absinfo *absx, *absy; in evdev_device_mm_to_units() local
947 absx = device->abs.absinfo_x; in evdev_device_mm_to_units()
950 units.x = mm->x * absx->resolution + absx->minimum; in evdev_device_mm_to_units()
961 const struct input_absinfo *absx, *absy; in evdev_phys_rect_to_units() local
[all …]
Devdev.c1613 const struct input_absinfo *absx, *absy; in evdev_fix_abs_resolution() local
1627 absx = libevdev_get_abs_info(evdev, xcode); in evdev_fix_abs_resolution()
1630 if (absx->resolution != 0 || absy->resolution != 0) in evdev_fix_abs_resolution()
1640 xres = (absx->maximum - absx->minimum)/widthmm; in evdev_fix_abs_resolution()
1734 const struct input_absinfo *absx, *absy; in evdev_reject_device() local
1750 absx = libevdev_get_abs_info(evdev, ABS_X); in evdev_reject_device()
1752 if ((absx->resolution == 0 && absy->resolution != 0) || in evdev_reject_device()
1753 (absx->resolution != 0 && absy->resolution == 0)) { in evdev_reject_device()
1762 absx = libevdev_get_abs_info(evdev, ABS_MT_POSITION_X); in evdev_reject_device()
1764 if ((absx->resolution == 0 && absy->resolution != 0) || in evdev_reject_device()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DShaderCore.cpp348 Float4 absx = Abs(x); in arcsin() local
349 …urn As<Float4>(As<Int4>(half_pi - Sqrt(Float4(1.0f) - absx) * (a0 + absx * (a1 + absx * (a2 + absx in arcsin()
379 Float4 absx = Abs(x); in arctan() local
380 Int4 O = CmpNLT(absx, Float4(1.0f)); in arctan()
381 …Float4 y = As<Float4>((O & As<Int4>(Float4(1.0f) / absx)) | (~O & As<Int4>(absx))); // FIXME: Vec… in arctan()
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DShaderCore.cpp364 Float4 absx = Abs(x); in arcsin() local
365 …urn As<Float4>(As<Int4>(half_pi - Sqrt(Float4(1.0f) - absx) * (a0 + absx * (a1 + absx * (a2 + absx in arcsin()
395 Float4 absx = Abs(x); in arctan() local
396 Int4 O = CmpNLT(absx, Float4(1.0f)); in arctan()
397 …Float4 y = As<Float4>((O & As<Int4>(Float4(1.0f) / absx)) | (~O & As<Int4>(absx))); // FIXME: Vect… in arctan()