/external/skia/include/core/ |
D | SkMath.h | 48 static inline int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { in SkMulDiv() argument 49 SkASSERT(denom); in SkMulDiv() 51 int64_t tmp = sk_64_mul(numer1, numer2) / denom; in SkMulDiv() 60 int32_t SkDivBits(int32_t numer, int32_t denom, int shift); 211 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { in SkTDivMod() argument 219 const In d = numer/denom; in SkTDivMod() 221 *mod = static_cast<Out>(numer-d*denom); in SkTDivMod() 224 *div = static_cast<Out>(numer/denom); in SkTDivMod() 225 *mod = static_cast<Out>(numer%denom); in SkTDivMod()
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkMath.h | 48 static inline int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { in SkMulDiv() argument 49 SkASSERT(denom); in SkMulDiv() 51 int64_t tmp = sk_64_mul(numer1, numer2) / denom; in SkMulDiv() 60 int32_t SkDivBits(int32_t numer, int32_t denom, int shift); 211 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { in SkTDivMod() argument 219 const In d = numer/denom; in SkTDivMod() 221 *mod = static_cast<Out>(numer-d*denom); in SkTDivMod() 224 *div = static_cast<Out>(numer/denom); in SkTDivMod() 225 *mod = static_cast<Out>(numer%denom); in SkTDivMod()
|
/external/chromium_org/third_party/skia/experimental/Intersection/ |
D | Extrema.cpp | 10 static int validUnitDivide(double numer, double denom, double* ratio) in validUnitDivide() argument 14 denom = -denom; in validUnitDivide() 16 if (denom == 0 || numer == 0 || numer >= denom) in validUnitDivide() 18 double r = numer / denom; in validUnitDivide()
|
D | LineIntersection.cpp | 21 double denom = byLen * axLen - ayLen * bxLen; in lineIntersect() local 22 SkASSERT(denom); in lineIntersect() 25 p.x = (term1 * bxLen - axLen * term2) / denom; in lineIntersect() 26 p.y = (term1 * byLen - ayLen * term2) / denom; in lineIntersect() 54 double denom = byLen * axLen - ayLen * bxLen; in intersect() local 59 bool mayNotOverlap = (numerA < 0 && denom > numerA) || (numerA > 0 && denom < numerA) in intersect() 60 || (numerB < 0 && denom > numerB) || (numerB > 0 && denom < numerB); in intersect() 61 numerA /= denom; in intersect() 62 numerB /= denom; in intersect() 63 if ((!approximately_zero(denom) || (!approximately_zero_inverse(numerA) in intersect()
|
D | DataTypes.h | 283 double denom = SkTMax(fabs(x), SkTMax(fabs(y), SkTMax(fabs(a.x), fabs(a.y)))); in approximatelyEqual() local 284 if (denom == 0) { in approximatelyEqual() 287 double inv = 1 / denom; in approximatelyEqual() 292 double denom = SkTMax(fabs(x), SkTMax(fabs(y), SkTMax(fabs(a.fX), fabs(a.fY)))); in approximatelyEqual() local 293 if (denom == 0) { in approximatelyEqual() 296 double inv = 1 / denom; in approximatelyEqual() 301 double denom = SkTMax(fabs(x), SkTMax(fabs(y), SkTMax(fabs(a.x), fabs(a.y)))); in approximatelyEqualHalf() local 302 if (denom == 0) { in approximatelyEqualHalf() 305 double inv = 1 / denom; in approximatelyEqualHalf()
|
/external/skia/experimental/Intersection/ |
D | Extrema.cpp | 10 static int validUnitDivide(double numer, double denom, double* ratio) in validUnitDivide() argument 14 denom = -denom; in validUnitDivide() 16 if (denom == 0 || numer == 0 || numer >= denom) in validUnitDivide() 18 double r = numer / denom; in validUnitDivide()
|
D | LineIntersection.cpp | 21 double denom = byLen * axLen - ayLen * bxLen; in lineIntersect() local 22 SkASSERT(denom); in lineIntersect() 25 p.x = (term1 * bxLen - axLen * term2) / denom; in lineIntersect() 26 p.y = (term1 * byLen - ayLen * term2) / denom; in lineIntersect() 54 double denom = byLen * axLen - ayLen * bxLen; in intersect() local 59 bool mayNotOverlap = (numerA < 0 && denom > numerA) || (numerA > 0 && denom < numerA) in intersect() 60 || (numerB < 0 && denom > numerB) || (numerB > 0 && denom < numerB); in intersect() 61 numerA /= denom; in intersect() 62 numerB /= denom; in intersect() 63 if ((!approximately_zero(denom) || (!approximately_zero_inverse(numerA) in intersect()
|
D | DataTypes.h | 283 double denom = SkTMax(fabs(x), SkTMax(fabs(y), SkTMax(fabs(a.x), fabs(a.y)))); in approximatelyEqual() local 284 if (denom == 0) { in approximatelyEqual() 287 double inv = 1 / denom; in approximatelyEqual() 292 double denom = SkTMax(fabs(x), SkTMax(fabs(y), SkTMax(fabs(a.fX), fabs(a.fY)))); in approximatelyEqual() local 293 if (denom == 0) { in approximatelyEqual() 296 double inv = 1 / denom; in approximatelyEqual() 301 double denom = SkTMax(fabs(x), SkTMax(fabs(y), SkTMax(fabs(a.x), fabs(a.y)))); in approximatelyEqualHalf() local 302 if (denom == 0) { in approximatelyEqualHalf() 305 double inv = 1 / denom; in approximatelyEqualHalf()
|
/external/skia/src/core/ |
D | SkMath.cpp | 71 if ((numer = (numer << 1) - denom) >= 0) \ 72 result |= 1 << (n - 1); else numer += denom 74 int32_t SkDivBits(int32_t numer, int32_t denom, int shift_bias) { in SkDivBits() argument 75 SkASSERT(denom != 0); in SkDivBits() 81 int32_t sign = SkExtractSign(numer ^ denom); in SkDivBits() 83 denom = SkAbs32(denom); in SkDivBits() 86 int dbits = SkCLZ(denom) - 1; in SkDivBits() 96 denom <<= dbits; in SkDivBits() 102 if ((numer -= denom) >= 0) { in SkDivBits() 105 numer += denom; in SkDivBits()
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkMath.cpp | 71 if ((numer = (numer << 1) - denom) >= 0) \ 72 result |= 1 << (n - 1); else numer += denom 74 int32_t SkDivBits(int32_t numer, int32_t denom, int shift_bias) { in SkDivBits() argument 75 SkASSERT(denom != 0); in SkDivBits() 81 int32_t sign = SkExtractSign(numer ^ denom); in SkDivBits() 83 denom = SkAbs32(denom); in SkDivBits() 86 int dbits = SkCLZ(denom) - 1; in SkDivBits() 96 denom <<= dbits; in SkDivBits() 102 if ((numer -= denom) >= 0) { in SkDivBits() 105 numer += denom; in SkDivBits()
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_format_rgb9e5.h | 108 double denom; in float3_to_rgb9e5() local 119 denom = pow(2, exp_shared - RGB9E5_EXP_BIAS - RGB9E5_MANTISSA_BITS); in float3_to_rgb9e5() 121 maxm = (int) floor(maxrgb / denom + 0.5); in float3_to_rgb9e5() 123 denom *= 2; in float3_to_rgb9e5() 130 rm = (int) floor(rc / denom + 0.5); in float3_to_rgb9e5() 131 gm = (int) floor(gc / denom + 0.5); in float3_to_rgb9e5() 132 bm = (int) floor(bc / denom + 0.5); in float3_to_rgb9e5()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_format_rgb9e5.h | 108 double denom; in float3_to_rgb9e5() local 119 denom = pow(2, exp_shared - RGB9E5_EXP_BIAS - RGB9E5_MANTISSA_BITS); in float3_to_rgb9e5() 121 maxm = (int) floor(maxrgb / denom + 0.5); in float3_to_rgb9e5() 123 denom *= 2; in float3_to_rgb9e5() 130 rm = (int) floor(rc / denom + 0.5); in float3_to_rgb9e5() 131 gm = (int) floor(gc / denom + 0.5); in float3_to_rgb9e5() 132 bm = (int) floor(bc / denom + 0.5); in float3_to_rgb9e5()
|
/external/chromium_org/third_party/webrtc/modules/video_coding/utility/ |
D | frame_dropper.cc | 242 float denom = 1.0f - _dropRatio.filtered(); in DropFrame() local 243 if (denom < 1e-5) in DropFrame() 245 denom = (float)1e-5; in DropFrame() 247 int32_t limit = static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f); in DropFrame() 286 float denom = _dropRatio.filtered(); in DropFrame() local 287 if (denom < 1e-5) in DropFrame() 289 denom = (float)1e-5; in DropFrame() 291 int32_t limit = -static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f); in DropFrame()
|
/external/chromium_org/ui/gfx/ |
D | skbitmap_operations.cc | 340 const int32_t denom = 65536; in LineProcHnopSdecLnop() local 341 int32_t s_numer = static_cast<int32_t>(hsl_shift.s * 2 * denom); in LineProcHnopSdecLnop() 358 int32_t denom_l = (vmax + vmin) * (denom / 2); in LineProcHnopSdecLnop() 361 r = (denom_l + r * s_numer - s_numer_l) / denom; in LineProcHnopSdecLnop() 362 g = (denom_l + g * s_numer - s_numer_l) / denom; in LineProcHnopSdecLnop() 363 b = (denom_l + b * s_numer - s_numer_l) / denom; in LineProcHnopSdecLnop() 378 const int32_t denom = 1024; in LineProcHnopSdecLdec() local 379 int32_t l_numer = static_cast<int32_t>(hsl_shift.l * 2 * denom); in LineProcHnopSdecLdec() 380 int32_t s_numer = static_cast<int32_t>(hsl_shift.s * 2 * denom); in LineProcHnopSdecLdec() 397 int32_t denom_l = (vmax + vmin) * (denom / 2); in LineProcHnopSdecLdec() [all …]
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
D | smooth.c | 36 int32_t B_W32, denom, num; in WebRtcIlbcfix_Smooth() local 142 denom = WebRtcSpl_DivW32W16(endiff, (int16_t)WEBRTC_SPL_RSHIFT_W32(w00w00, 16)); in WebRtcIlbcfix_Smooth() 144 denom = 65536; in WebRtcIlbcfix_Smooth() 147 if( denom > 7){ /* eliminates numerical problems in WebRtcIlbcfix_Smooth() 150 scale=WebRtcSpl_GetSizeInBits(denom)-15; in WebRtcIlbcfix_Smooth() 154 denomW16=(int16_t)WEBRTC_SPL_RSHIFT_W32(denom, scale); in WebRtcIlbcfix_Smooth() 160 denomW16=(int16_t)denom; in WebRtcIlbcfix_Smooth()
|
/external/aac/libSBRenc/src/ |
D | sbr_misc.cpp | 241 FIXP_DBL FDKsbrEnc_LSI_divide_scale_fract(FIXP_DBL num, FIXP_DBL denom, FIXP_DBL scale) in FDKsbrEnc_LSI_divide_scale_fract() argument 248 INT shiftDenom = CountLeadingBits(denom); in FDKsbrEnc_LSI_divide_scale_fract() 256 if ( denom > (tmp >> fixMin(shiftNum+shiftScale-1,(DFRACT_BITS-1))) ) { in FDKsbrEnc_LSI_divide_scale_fract() 257 denom = denom << shiftDenom; in FDKsbrEnc_LSI_divide_scale_fract() 258 tmp = schur_div(tmp,denom,15); in FDKsbrEnc_LSI_divide_scale_fract()
|
/external/chromium_org/third_party/skia/src/pathops/ |
D | SkDLineIntersection.cpp | 19 double denom = byLen * axLen - ayLen * bxLen; in Line() local 20 SkASSERT(denom); in Line() 24 p.fX = (term1 * bxLen - axLen * term2) / denom; in Line() 25 p.fY = (term1 * byLen - ayLen * term2) / denom; in Line() 75 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; in intersectRay() local 80 if (!between(0, numerA, denom) || !between(0, numerB, denom)) { in intersectRay() 85 numerA /= denom; in intersectRay() 86 numerB /= denom; in intersectRay() 88 if (!approximately_zero(denom)) { in intersectRay() 150 double denom = axByLen - ayBxLen; in intersect() local [all …]
|
/external/skia/src/pathops/ |
D | SkDLineIntersection.cpp | 19 double denom = byLen * axLen - ayLen * bxLen; in Line() local 20 SkASSERT(denom); in Line() 24 p.fX = (term1 * bxLen - axLen * term2) / denom; in Line() 25 p.fY = (term1 * byLen - ayLen * term2) / denom; in Line() 75 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; in intersectRay() local 80 if (!between(0, numerA, denom) || !between(0, numerB, denom)) { in intersectRay() 85 numerA /= denom; in intersectRay() 86 numerB /= denom; in intersectRay() 88 if (!approximately_zero(denom)) { in intersectRay() 150 double denom = axByLen - ayBxLen; in intersect() local [all …]
|
/external/libvorbis/lib/ |
D | lsp.c | 321 double p=defl[m],pp=0.f,ppp=0.f,denom; in Laguerre_With_Deflation() local 331 denom=(m-1) * ((m-1)*pp*pp - m*p*ppp); in Laguerre_With_Deflation() 332 if(denom<0) in Laguerre_With_Deflation() 336 denom = pp + sqrt(denom); in Laguerre_With_Deflation() 337 if(denom<EPSILON)denom=EPSILON; in Laguerre_With_Deflation() 339 denom = pp - sqrt(denom); in Laguerre_With_Deflation() 340 if(denom>-(EPSILON))denom=-(EPSILON); in Laguerre_With_Deflation() 343 delta = m*p/denom; in Laguerre_With_Deflation()
|
/external/skia/tests/ |
D | MathTest.cpp | 472 SkFixed denom = rand.nextS(); in DEF_TEST() local 473 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST() 474 int64_t check = ((int64_t)numer << 16) / denom; in DEF_TEST() 477 (void)SkCLZ(denom); in DEF_TEST() 540 T denom; in test_divmod() member 554 const T denom = kEdgeCases[i].denom; in test_divmod() local 556 SkTDivMod(numer, denom, &div, &mod); in test_divmod() 557 REPORTER_ASSERT(r, numer/denom == div); in test_divmod() 558 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod() 564 T denom = 0; in test_divmod() local [all …]
|
/external/chromium_org/third_party/skia/tests/ |
D | MathTest.cpp | 470 SkFixed denom = rand.nextS(); in DEF_TEST() local 471 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST() 472 int64_t check = ((int64_t)numer << 16) / denom; in DEF_TEST() 475 (void)SkCLZ(denom); in DEF_TEST() 538 T denom; in test_divmod() member 552 const T denom = kEdgeCases[i].denom; in test_divmod() local 554 SkTDivMod(numer, denom, &div, &mod); in test_divmod() 555 REPORTER_ASSERT(r, numer/denom == div); in test_divmod() 556 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod() 562 T denom = 0; in test_divmod() local [all …]
|
/external/mesa3d/include/c99/ |
D | inttypes.h | 280 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) in imaxdiv() argument 284 result.quot = numer / denom; in imaxdiv() 285 result.rem = numer % denom; in imaxdiv() 290 result.rem -= denom; in imaxdiv()
|
/external/chromium_org/third_party/mesa/src/include/c99/ |
D | inttypes.h | 280 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) in imaxdiv() argument 284 result.quot = numer / denom; in imaxdiv() 285 result.rem = numer % denom; in imaxdiv() 290 result.rem -= denom; in imaxdiv()
|
/external/clang/test/CodeGen/ |
D | uint128_t.c | 5 extern uint64_t denom; 14 tmp /= denom; in f()
|
/external/jemalloc/include/msvc_compat/C99/ |
D | inttypes.h | 288 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) in imaxdiv() argument 292 result.quot = numer / denom; in imaxdiv() 293 result.rem = numer % denom; in imaxdiv() 298 result.rem -= denom; in imaxdiv()
|