/external/OpenCL-CTS/test_common/harness/ |
D | msvc9.c | 86 float absx = fabsf(x); in rintf() local 88 if (absx < 8388608.0f /* 0x1.0p23f */) in rintf() 101 double absx = fabs(x); in rint() local 103 if (absx < 4503599627370496.0 /* 0x1.0p52f */) in rint() 116 double absx = fabs(x); in rintl() local 118 if (absx < 9223372036854775808.0L /* 0x1.0p64f */) in rintl() 153 cl_ulong absx = u.u & CL_LONG_MAX; in ilogb() local 154 if (absx - 0x0001000000000000ULL in ilogb() 157 switch (absx) in ilogb() 162 if (absx > 0x7ff0000000000000ULL) return FP_ILOGBNAN; in ilogb() [all …]
|
/external/python/cpython2/Modules/ |
D | _math.c | 91 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 …]
|
D | mathmodule.c | 233 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.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 | 291 double absx, r, y, z, sqrtpow; in m_tgamma() local 317 absx = fabs(x); in m_tgamma() 320 if (absx < 1e-20) { in m_tgamma() 330 if (absx > 200.0) { in m_tgamma() 340 y = absx + lanczos_g_minus_half; in m_tgamma() 342 if (absx > lanczos_g_minus_half) { in m_tgamma() 347 double q = y - absx; in m_tgamma() 352 z = q - absx; in m_tgamma() 356 r = -pi / m_sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma() 358 if (absx < 140.0) { in m_tgamma() [all …]
|
/external/llvm-project/libclc/generic/lib/math/ |
D | asinh.cl | 62 float absx = as_float(ax); 64 float y = MATH_SQRT(absx * absx + 1.0f) + absx; 65 y = hi ? absx : y; 200 double absx = as_double(ax); 215 pn = absx < 8.0 ? tn : pn; 216 pd = absx < 8.0 ? td : pd; 220 pn = absx < 4.0 ? tn : pn; 221 pd = absx < 4.0 ? td : pd; 225 pn = absx < 2.0 ? tn : pn; 226 pd = absx < 2.0 ? td : pd; [all …]
|
D | lgamma_r.cl | 116 float absx = as_float(ix); 123 if (absx < 0x1.0p-70f) { 125 return -log(absx); 130 if (absx == 1.0f | absx == 2.0f) 133 else if (absx < 2.0f) { 134 float y = 2.0f - absx; 137 int c = absx < 0x1.bb4c30p+0f; 138 float yt = absx - tc_f; 142 c = absx < 0x1.3b4c40p+0f; 143 yt = absx - 1.0f; [all …]
|
D | erfc.cl | 112 float absx = as_float(ix); 115 float x2 = absx * absx; 117 float tt = absx - 1.0f; 118 t = absx < 1.25f ? tt : t; 119 t = absx < 0.84375f ? x2 : t; 129 u = absx < 0x1.6db6dap+1f ? tu : u; 130 v = absx < 0x1.6db6dap+1f ? tv : v; 134 u = absx < 1.25f ? tu : u; 135 v = absx < 1.25f ? tv : v; 139 u = absx < 0.84375f ? tu : u; [all …]
|
D | erf.cl | 112 float absx = as_float(ix); 114 float x2 = absx * absx; 116 float tt = absx - 1.0f; 117 t = absx < 1.25f ? tt : t; 118 t = absx < 0.84375f ? x2 : t; 128 u = absx < 0x1.6db6dcp+1f ? tu : u; 129 v = absx < 0x1.6db6dcp+1f ? tv : v; 133 u = absx < 1.25f ? tu : u; 134 v = absx < 1.25f ? tv : v; 138 u = absx < 0.84375f ? tu : u; [all …]
|
D | atanh.cl | 67 double absx = fabs(x); 69 double ret = absx == 1.0 ? as_double(PINFBITPATT_DP64) : as_double(QNANBITPATT_DP64); 75 double r = 0.5 * log1p(2.0 * absx / (1.0 - absx)); 76 ret = absx < 1.0 ? r : ret; 106 ret = absx < 0.5 ? r : ret;
|
/external/rust/crates/libm/src/math/ |
D | tgamma.rs | 135 let absx: f64; in tgamma() localVariable 182 absx = if sign { -x } else { x }; in tgamma() 185 y = absx + GMHALF; in tgamma() 186 if absx > GMHALF { in tgamma() 187 dy = y - absx; in tgamma() 191 dy -= absx; in tgamma() 194 z = absx - 0.5; in tgamma() 195 r = s(absx) * exp(-y); in tgamma() 199 r = -PI / (sinpi(absx) * absx * r); in tgamma()
|
D | sinh.rs | 18 let absx: f64; in sinh() localVariable 27 absx = uf; in sinh() 32 t = expm1(absx); in sinh() 47 t = 2.0 * h * expo2(absx); in sinh()
|
D | sinhf.rs | 13 let absx = f32::from_bits(ix); in sinhf() localVariable 18 let t = expm1f(absx); in sinhf() 29 2. * h * k_expo2f(absx) in sinhf()
|
/external/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()
|
/external/python/cpython2/Python/ |
D | pymath.c | 72 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/ |
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()
|
/external/wayland/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()
|
/external/OpenCL-CTS/test_conformance/math_brute_force/ |
D | reference_math.cpp | 1103 double absx = reference_fabs(x); in reference_round() local 1104 if (absx < 0.5) return reference_copysignd(0.0, x); in reference_round() 1106 if (absx < HEX_DBL(+, 1, 0, +, 53)) in reference_round() 1174 double absx = reference_fabs(x); in reference_asinh() local 1175 if (absx < HEX_DBL(+, 1, 0, -, 28)) return x; in reference_asinh() 1179 if (absx > HEX_DBL(+, 1, 0, +, 28)) in reference_asinh() 1181 * (reference_log(absx) in reference_asinh() 1184 if (absx > 2.0) in reference_asinh() 1186 * reference_log(2.0 * absx in reference_asinh() 1187 + 1.0 / (reference_sqrt(x * x + 1.0) + absx)); in reference_asinh() [all …]
|
/external/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()
|
/external/llvm-project/flang/include/flang/Evaluate/ |
D | integer.h | 852 Integer absx{*this}; in MultiplyUnsigned() 854 absx = Negate().value; in MultiplyUnsigned() 856 Product product{absx.MultiplyUnsigned(absy)}; in MultiplyUnsigned()
|
/external/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()
|