/third_party/python/Modules/ |
D | _math.c | 102 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 …]
|
D | mathmodule.c | 293 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/ |
D | tgamma.c | 111 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 …]
|
D | sinhf.c | 7 float t, h, absx; in sinhf() local 14 absx = u.f; in sinhf() 19 t = expm1f(absx); in sinhf() 29 t = 2*h*__expo2f(absx); in sinhf()
|
D | sinh.c | 11 double t, h, absx; in sinh() local 18 absx = u.f; in sinh() 23 t = expm1(absx); in sinh() 37 t = 2*h*__expo2(absx); in sinh()
|
D | sinhl.c | 13 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()
|
D | modfl.c | 22 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/ |
D | tgamma.c | 111 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 …]
|
D | sinhf.c | 7 float t, h, absx; in sinhf() local 14 absx = u.f; in sinhf() 19 t = expm1f(absx); in sinhf() 29 t = 2*h*__expo2f(absx); in sinhf()
|
D | sinh.c | 11 double t, h, absx; in sinh() local 18 absx = u.f; in sinh() 23 t = expm1(absx); in sinh() 37 t = 2*h*__expo2(absx); in sinh()
|
D | sinhl.c | 13 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()
|
D | modfl.c | 22 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/ |
D | OptimalIntrinsics.cpp | 108 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/boost/libs/math/test/ |
D | cardinal_b_spline_test.cpp | 105 Real absx = abs(x); in test_quadratic() local 106 if (absx >= 3/Real(2)) { in test_quadratic() 109 if (absx >= 1/Real(2)) { in test_quadratic() 110 Real t = absx - 3/Real(2); in test_quadratic() 113 Real t1 = absx - 1/Real(2); in test_quadratic() 114 Real t2 = absx + 1/Real(2); in test_quadratic() 119 Real absx = abs(x); in test_quadratic() local 124 if (absx >= 3/Real(2)) { in test_quadratic() 127 if (absx >= 1/Real(2)) { in test_quadratic() 128 return (absx - 3/Real(2))*signx; in test_quadratic() [all …]
|
/third_party/python/Python/ |
D | pymath.c | 74 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/ |
D | evdev.h | 857 const struct input_absinfo *absx, *absy; in evdev_device_unit_delta_to_mm() local 867 absx = device->abs.absinfo_x; in evdev_device_unit_delta_to_mm() 870 mm.x = 1.0 * units->x/absx->resolution; in evdev_device_unit_delta_to_mm() 885 const struct input_absinfo *absx, *absy; in evdev_device_units_to_mm() local 895 absx = device->abs.absinfo_x; in evdev_device_units_to_mm() 898 mm.x = (units->x - absx->minimum)/absx->resolution; in evdev_device_units_to_mm() 913 const struct input_absinfo *absx, *absy; in evdev_device_mm_to_units() local 923 absx = device->abs.absinfo_x; in evdev_device_mm_to_units() 926 units.x = mm->x * absx->resolution + absx->minimum; in evdev_device_mm_to_units() 937 const struct input_absinfo *absx, *absy; in evdev_phys_rect_to_units() local [all …]
|
D | evdev.c | 1534 const struct input_absinfo *absx, *absy; in evdev_fix_abs_resolution() local 1548 absx = libevdev_get_abs_info(evdev, xcode); in evdev_fix_abs_resolution() 1551 if (absx->resolution != 0 || absy->resolution != 0) in evdev_fix_abs_resolution() 1561 xres = (absx->maximum - absx->minimum)/widthmm; in evdev_fix_abs_resolution() 1655 const struct input_absinfo *absx, *absy; in evdev_reject_device() local 1671 absx = libevdev_get_abs_info(evdev, ABS_X); in evdev_reject_device() 1673 if ((absx->resolution == 0 && absy->resolution != 0) || in evdev_reject_device() 1674 (absx->resolution != 0 && absy->resolution == 0)) { in evdev_reject_device() 1683 absx = libevdev_get_abs_info(evdev, ABS_MT_POSITION_X); in evdev_reject_device() 1685 if ((absx->resolution == 0 && absy->resolution != 0) || in evdev_reject_device() [all …]
|
/third_party/boost/boost/math/interpolators/detail/ |
D | cardinal_quadratic_b_spline_detail.hpp | 18 Real absx = abs(x); in b2_spline() local 19 if (absx < 1/Real(2)) in b2_spline() 21 Real y = absx - 1/Real(2); in b2_spline() 22 Real z = absx + 1/Real(2); in b2_spline() 25 if (absx < Real(3)/Real(2)) in b2_spline() 27 Real y = absx - Real(3)/Real(2); in b2_spline()
|
D | cubic_b_spline_detail.hpp | 50 Real absx = abs(x); in b3_spline() local 51 if (absx < 1) in b3_spline() 53 Real y = 2 - absx; in b3_spline() 54 Real z = 1 - absx; in b3_spline() 57 if (absx < 2) in b3_spline() 59 Real y = 2 - absx; in b3_spline()
|
D | cardinal_cubic_b_spline_detail.hpp | 50 Real absx = abs(x); in b3_spline() local 51 if (absx < 1) in b3_spline() 53 Real y = 2 - absx; in b3_spline() 54 Real z = 1 - absx; in b3_spline() 57 if (absx < 2) in b3_spline() 59 Real y = 2 - absx; in b3_spline()
|
/third_party/wayland_standard/cursor/ |
D | convert_font.c | 253 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()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
D | ShaderCore.cpp | 348 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/ |
D | ShaderCore.cpp | 364 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()
|
/third_party/libinput/tools/ |
D | libinput-debug-gui.c | 98 int absx, absy; member 399 cairo_arc(cr, w->absx, w->absy, 10, 0, 2 * M_PI); in draw_abs_pointer() 1097 w->absx = x; in handle_event_absmotion()
|