/third_party/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | TJScalingFactor.java | 44 public TJScalingFactor(int num, int denom) { in TJScalingFactor() argument 45 if (num < 1 || denom < 1) in TJScalingFactor() 48 this.denom = denom; in TJScalingFactor() 66 return denom; in getDenom() 79 return (dimension * num + denom - 1) / denom; in getScaled() 92 return this.num == other.num && this.denom == other.denom; in equals() 103 return num == 1 && denom == 1; in isOne() 114 private int denom = 1; field in TJScalingFactor
|
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | TJScalingFactor.java | 44 public TJScalingFactor(int num, int denom) { in TJScalingFactor() argument 45 if (num < 1 || denom < 1) in TJScalingFactor() 48 this.denom = denom; in TJScalingFactor() 66 return denom; in getDenom() 79 return (dimension * num + denom - 1) / denom; in getScaled() 92 return this.num == other.num && this.denom == other.denom; in equals() 103 return num == 1 && denom == 1; in isOne() 114 private int denom = 1; field in TJScalingFactor
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_idiv.c | 45 nir_ssa_def *numer, nir_ssa_def *denom) in convert_instr() argument 56 bf = nir_i2f32(bld, denom); in convert_instr() 60 b = nir_iabs(bld, denom); in convert_instr() 63 bf = nir_u2f32(bld, denom); in convert_instr() 65 b = denom; in convert_instr() 102 r = nir_ixor(bld, numer, denom); in convert_instr() 108 q = nir_imul(bld, q, denom); in convert_instr() 113 nir_bcsel(bld, r, nir_iadd(bld, q, denom), q)); in convert_instr() 124 emit_udiv(nir_builder *bld, nir_ssa_def *numer, nir_ssa_def *denom, bool modulo) in emit_udiv() argument 126 nir_ssa_def *rcp = nir_frcp(bld, nir_u2f32(bld, denom)); in emit_udiv() [all …]
|
/third_party/boost/boost/math/interpolators/ |
D | catmull_rom.hpp | 166 typename Point::value_type denom = 1/(m_s[i] - m_s[i-1]); in operator ()() local 169 A1_or_A3[j] = denom*(s1s*m_pnts[i-1][j] - s0s*m_pnts[i][j]); in operator ()() 179 denom = 1/(m_s[i+1] - m_s[i-1]); in operator ()() 182 B1_or_C[j] = denom*(s2s*A1_or_A3[j] - s0s*A2_or_B2[j]); in operator ()() 185 denom = 1/(m_s[i+2] - m_s[i+1]); in operator ()() 188 A1_or_A3[j] = denom*(s3s*m_pnts[i+1][j] - s2s*m_pnts[i+2][j]); in operator ()() 192 denom = 1/(m_s[i+2] - m_s[i]); in operator ()() 195 B2[j] = denom*(s3s*A2_or_B2[j] - s1s*A1_or_A3[j]); in operator ()() 220 typename Point::value_type denom = 1/(m_s[i] - m_s[i-1]); in prime() local 221 typename Point::value_type k1 = (m_s[i]-s)*denom; in prime() [all …]
|
/third_party/boost/libs/safe_numerics/example/ |
D | motor2.c | 40 int16 denom; // 4.n+1 in ramp algo variable 66 denom = ((step_no - move) * 4) + 1; in isr_motor_step() 68 denom = ((move - step_no) * 4) - 1; in isr_motor_step() 70 denom += 4; in isr_motor_step() 80 denom += 4; in isr_motor_step() 85 if(denom > 0) in isr_motor_step() 86 c -= (c << 1) / denom; in isr_motor_step() 88 c += (c << 1) / -denom; in isr_motor_step() 104 denom = 5 - ((move - step_no) * 4); in isr_motor_step() 141 denom = 1; // 4.n+1, n=0 in motor_run()
|
D | motor1.c | 39 int16 denom; // 4.n+1 in ramp algo variable 60 denom = ((step_no - move) << 2) + 1; in isr_motor_step() 62 denom += 4; in isr_motor_step() 72 denom += 4; in isr_motor_step() 73 c32 -= (c32 << 1) / denom; // ramp algorithm in isr_motor_step() 86 denom = ((step_no - move) << 2) + 5; in isr_motor_step() 124 denom = 1; // 4.n+1, n=0 in motor_run()
|
D | Motor.c | 45 signed int16 denom; // 4.n+1 in ramp algo variable 65 denom = ((step_no - move)<<2)+1; in isr_motor_step() 68 denom +=4; in isr_motor_step() 79 denom+=4; in isr_motor_step() 80 c32 -= (c32<<1)/denom; // ramp algorithm in isr_motor_step() 95 denom = ((step_no - move)<<2)+5; in isr_motor_step() 138 denom = 1; // 4.n+1, n=0 in motor_run()
|
/third_party/boost/boost/math/special_functions/detail/ |
D | bessel_jy_asym.hpp | 51 T denom = 4 * x; in asymptotic_bessel_phase_mx() local 52 T denom_mult = denom * denom; in asymptotic_bessel_phase_mx() 55 s += (mu - 1) / (2 * denom); in asymptotic_bessel_phase_mx() 56 denom *= denom_mult; in asymptotic_bessel_phase_mx() 57 s += (mu - 1) * (mu - 25) / (6 * denom); in asymptotic_bessel_phase_mx() 58 denom *= denom_mult; in asymptotic_bessel_phase_mx() 59 s += (mu - 1) * (mu * mu - 114 * mu + 1073) / (5 * denom); in asymptotic_bessel_phase_mx() 60 denom *= denom_mult; in asymptotic_bessel_phase_mx() 61 s += (mu - 1) * (5 * mu * mu * mu - 1535 * mu * mu + 54703 * mu - 375733) / (14 * denom); in asymptotic_bessel_phase_mx() 199 T denom = ex; in asymptotic_bessel_i_large_x() local [all …]
|
D | bessel_jy_derivatives_asym.hpp | 47 T denom = 4 * x; in asymptotic_bessel_derivative_phase_mx() local 48 T denom_mult = denom * denom; in asymptotic_bessel_derivative_phase_mx() 51 s += (mu + 3) / (2 * denom); in asymptotic_bessel_derivative_phase_mx() 52 denom *= denom_mult; in asymptotic_bessel_derivative_phase_mx() 53 s += (mu2 + (46 * mu) - 63) / (6 * denom); in asymptotic_bessel_derivative_phase_mx() 54 denom *= denom_mult; in asymptotic_bessel_derivative_phase_mx() 55 s += (mu3 + (185 * mu2) - (2053 * mu) + 1899) / (5 * denom); in asymptotic_bessel_derivative_phase_mx()
|
/third_party/ffmpeg/tests/checkasm/ |
D | hevc_pel.c | 162 const int *denom, *wx, *ox; in checkasm_check_hevc_qpel_uni_w() local 164 … int height, int denom, int wx, int ox, intptr_t mx, intptr_t my, int width); in checkasm_check_hevc_qpel_uni_w() 181 for (denom = denoms; *denom >= 0; denom++) { in checkasm_check_hevc_qpel_uni_w() 185 …zes[size] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, sizes[size], *denom, *wx, *ox, i, j, s… in checkasm_check_hevc_qpel_uni_w() 186 …zes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], *denom, *wx, *ox, i, j, s… in checkasm_check_hevc_qpel_uni_w() 189 …zes[size] * SIZEOF_PIXEL, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], *denom, *wx, *ox, i, j, s… in checkasm_check_hevc_qpel_uni_w() 256 const int *denom, *wx, *ox; in checkasm_check_hevc_qpel_bi_w() local 259 … int height, int denom, int wx0, int wx1, in checkasm_check_hevc_qpel_bi_w() 277 for (denom = denoms; *denom >= 0; denom++) { in checkasm_check_hevc_qpel_bi_w() 281 …ze] * SIZEOF_PIXEL, src0, sizes[size] * SIZEOF_PIXEL, ref0, sizes[size], *denom, *wx, *wx, *ox, *o… in checkasm_check_hevc_qpel_bi_w() [all …]
|
/third_party/boost/boost/multiprecision/detail/functions/ |
D | constants.hpp | 51 T denom, next_term, temp; in calc_log2() local 52 denom = static_cast<ui_type>(1277337600uL); in calc_log2() 64 eval_multiply(denom, temp); in calc_log2() 72 eval_multiply(denom, ui_type(4)); in calc_log2() 74 INSTRUMENT_BACKEND(denom); in calc_log2() 76 eval_divide(num, denom); in calc_log2() 116 T denom; in calc_e() local 117 denom = ui_type(1); in calc_e() 121 eval_multiply(denom, i); in calc_e() 125 } while (denom.compare(lim) <= 0); in calc_e() [all …]
|
/third_party/boost/libs/math/reporting/performance/ |
D | test_poly_method.cpp | 60 static const double denom[20] = { variable 114 …result += boost::math::tools::detail::evaluate_polynomial_c_imp_1(denom, v[0] + i, static_cast<boo… in test_poly_1() 143 …result += boost::math::tools::detail::evaluate_polynomial_c_imp_2(denom, v[0] + i, static_cast<boo… in test_poly_2() 169 …result += boost::math::tools::detail::evaluate_polynomial_c_imp_3(denom, v[0] + i, static_cast<boo… in test_poly_3() 207 …result += boost::math::tools::detail::evaluate_rational_c_imp_1(num, denom, v[0] + i, static_cast<… in test_rat_1() 235 …result += boost::math::tools::detail::evaluate_rational_c_imp_2(num, denom, v[0] + i, static_cast<… in test_rat_2() 263 …result += boost::math::tools::detail::evaluate_rational_c_imp_3(num, denom, v[0] + i, static_cast<… in test_rat_3() 279 V evaluate_rational_0(const T* num, const U* denom, const V& z_, std::size_t count) in evaluate_rational_0() argument 286 s2 = static_cast<V>(denom[count - 1]); in evaluate_rational_0() 292 s2 += denom[i]; in evaluate_rational_0() [all …]
|
/third_party/musl/src/complex/ |
D | ctanhf.c | 36 float t, beta, s, rho, denom; in ctanhf() local 64 denom = 1 + beta * s * s; in ctanhf() 65 return CMPLXF((beta * rho * s) / denom, t / denom); in ctanhf()
|
D | ctanh.c | 71 double t, beta, s, rho, denom; in ctanh() local 127 denom = 1 + beta * s * s; in ctanh() 128 return CMPLX((beta * rho * s) / denom, t / denom); in ctanh()
|
/third_party/boost/boost/multiprecision/detail/ |
D | generic_interconvert.hpp | 303 generic_convert_rational_to_float_imp(To& result, Integer& num, Integer& denom, const mpl::false_&) in generic_convert_rational_to_float_imp() argument 321 int denom_bits = msb(denom); in generic_convert_rational_to_float_imp() 326 denom <<= boost::multiprecision::detail::unsigned_abs(shift); in generic_convert_rational_to_float_imp() 328 divide_qr(num, denom, q, r); in generic_convert_rational_to_float_imp() 336 int c = r.compare(denom); in generic_convert_rational_to_float_imp() 364 generic_convert_rational_to_float_imp(To& result, Integer& num, Integer& denom, const mpl::false_& … in generic_convert_rational_to_float_imp() argument 367 generic_convert_rational_to_float_imp(t, num, denom, tag); in generic_convert_rational_to_float_imp() 402 typename component_type<number<To> >::type num, denom; in generic_interconvert_float2rational() local 414 denom = ui_type(1u); in generic_interconvert_float2rational() 416 denom <<= -e; in generic_interconvert_float2rational() [all …]
|
/third_party/boost/libs/multiprecision/example/ |
D | debug_adaptor_snips.cpp | 20 fp_type denom = 1; in t1() local 25 denom *= i; in t1() 26 sum += 1 / denom; in t1()
|
/third_party/flutter/skia/tests/ |
D | MathTest.cpp | 458 SkFixed denom = rand.nextS(); in DEF_TEST() local 459 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST() 460 int64_t check = SkLeftShift((int64_t)numer, 16) / denom; in DEF_TEST() 463 (void)SkCLZ(denom); in DEF_TEST() 472 ERRORF(reporter, "\nFixed Divide: %8x / %8x -> %8x %8x\n", numer, denom, result, check); in DEF_TEST() 528 T denom; in test_divmod() member 542 const T denom = kEdgeCases[i].denom; in test_divmod() local 544 SkTDivMod(numer, denom, &div, &mod); in test_divmod() 545 REPORTER_ASSERT(r, numer/denom == div); in test_divmod() 546 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/ |
D | arithmetic_grad.c | 23 void ElementDivNegSquare(const float *nom, const float *denom, float *output, int element_size) { in ElementDivNegSquare() argument 25 output[i] = -nom[i] / (denom[i] * denom[i]); in ElementDivNegSquare() 29 void ElementMulAndDivNegSquare(const float *a, const float *b, const float *denom, float *output, i… in ElementMulAndDivNegSquare() argument 31 output[i] = -a[i] * b[i] / (denom[i] * denom[i]); in ElementMulAndDivNegSquare()
|
/third_party/boost/boost/math/tools/ |
D | rational.hpp | 261 V evaluate_rational(const T* num, const U* denom, const V& z_, std::size_t count) BOOST_MATH_NOEXCE… 266 inline V evaluate_rational_c_imp(const T* num, const U* denom, const V& z, const Tag*) BOOST_MATH_N… in evaluate_rational_c_imp() argument 268 return boost::math::tools::evaluate_rational(num, denom, z, Tag::value); in evaluate_rational_c_imp() 281 V evaluate_rational(const T* num, const U* denom, const V& z_, std::size_t count) BOOST_MATH_NOEXCE… in evaluate_rational() argument 288 s2 = static_cast<V>(denom[count-1]); in evaluate_rational() 294 s2 += denom[i]; in evaluate_rational() 301 s2 = static_cast<V>(denom[0]); in evaluate_rational() 307 s2 += denom[i]; in evaluate_rational()
|
/third_party/boost/boost/polygon/detail/ |
D | voronoi_predicates.hpp | 625 big_int_type denom = vec_x * line_b - vec_y * line_a; in pps() local 639 if (is_zero(denom)) { in pps() 641 denom = teta * sum_AB; in pps() 642 cA[0] = denom * sum_x * 2 + numer * vec_x; in pps() 644 cA[1] = denom * sum_AB * 2 + numer * teta; in pps() 646 cA[2] = denom * sum_y * 2 + numer * vec_y; in pps() 647 fpt_type inv_denom = to_fpt(1.0) / to_fpt(denom); in pps() 659 big_int_type det = (teta * teta + denom * denom) * A * B * 4; in pps() 660 fpt_type inv_denom_sqr = to_fpt(1.0) / to_fpt(denom); in pps() 664 cA[0] = sum_x * denom * denom + teta * sum_AB * vec_x; in pps() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/ |
D | arithmetic_grad.c | 23 void ElementDivNegSquareFp16(const float16_t *nom, const float16_t *denom, float16_t *output, int e… in ElementDivNegSquareFp16() argument 25 output[i] = -nom[i] / (denom[i] * denom[i]); in ElementDivNegSquareFp16() 29 void ElementMulAndDivNegSquareFp16(const float16_t *a, const float16_t *b, const float16_t *denom, … in ElementMulAndDivNegSquareFp16() argument 32 output[i] = -a[i] * b[i] / (denom[i] * denom[i]); in ElementMulAndDivNegSquareFp16()
|
/third_party/flutter/skia/src/core/ |
D | SkMathPriv.h | 33 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { in SkTDivMod() argument 41 const In d = numer/denom; in SkTDivMod() 43 *mod = static_cast<Out>(numer-d*denom); in SkTDivMod() 46 *div = static_cast<Out>(numer/denom); in SkTDivMod() 47 *mod = static_cast<Out>(numer%denom); in SkTDivMod()
|
/third_party/skia/tests/ |
D | MathTest.cpp | 490 SkFixed denom = rand.nextS(); in DEF_TEST() local 491 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST() 492 int64_t check = SkLeftShift((int64_t)numer, 16) / denom; in DEF_TEST() 495 (void)SkCLZ(denom); in DEF_TEST() 504 ERRORF(reporter, "\nFixed Divide: %8x / %8x -> %8x %8" PRIx64 "\n", numer, denom, in DEF_TEST() 561 T denom; in test_divmod() member 575 const T denom = kEdgeCases[i].denom; in test_divmod() local 577 SkTDivMod(numer, denom, &div, &mod); in test_divmod() 578 REPORTER_ASSERT(r, numer/denom == div); in test_divmod() 579 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod() [all …]
|
/third_party/flutter/skia/src/pathops/ |
D | SkDLineIntersection.cpp | 51 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; in intersectRay() local 53 if (!approximately_zero(denom)) { in intersectRay() 57 numerA /= denom; in intersectRay() 58 numerB /= denom; in intersectRay() 120 double denom = axByLen - ayBxLen; in intersect() local 121 if (between(0, numerA, denom) && between(0, numerB, denom)) { in intersect() 122 fT[0][0] = numerA / denom; in intersect() 123 fT[1][0] = numerB / denom; in intersect()
|
/third_party/skia/src/pathops/ |
D | SkDLineIntersection.cpp | 51 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; in intersectRay() local 53 if (!approximately_zero(denom)) { in intersectRay() 57 numerA /= denom; in intersectRay() 58 numerB /= denom; in intersectRay() 120 double denom = axByLen - ayBxLen; in intersect() local 121 if (between(0, numerA, denom) && between(0, numerB, denom)) { in intersect() 122 fT[0][0] = numerA / denom; in intersect() 123 fT[1][0] = numerB / denom; in intersect()
|