/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | TJScalingFactor.java | 36 public TJScalingFactor(int num, int denom) throws Exception { in TJScalingFactor() argument 37 if (num < 1 || denom < 1) in TJScalingFactor() 40 this.denom = denom; in TJScalingFactor() 58 return denom; in getDenom() 69 return (dimension * num + denom - 1) / denom; in getScaled() 80 return (this.num == other.num && this.denom == other.denom); in equals() 91 return (num == 1 && denom == 1); in isOne() 102 private int denom = 1; field in TJScalingFactor
|
/external/skia/src/core/ |
D | SkMath.cpp | 50 if ((numer = (numer << 1) - denom) >= 0) \ 51 result |= 1 << (n - 1); else numer += denom 53 int32_t SkDivBits(int32_t numer, int32_t denom, int shift_bias) { in SkDivBits() argument 54 SkASSERT(denom != 0); in SkDivBits() 60 int32_t sign = SkExtractSign(numer ^ denom); in SkDivBits() 62 denom = SkAbs32(denom); in SkDivBits() 65 int dbits = SkCLZ(denom) - 1; in SkDivBits() 75 denom <<= dbits; in SkDivBits() 81 if ((numer -= denom) >= 0) { in SkDivBits() 84 numer += denom; in SkDivBits()
|
/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); 186 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { in SkTDivMod() argument 194 const In d = numer/denom; in SkTDivMod() 196 *mod = static_cast<Out>(numer-d*denom); in SkTDivMod() 199 *div = static_cast<Out>(numer/denom); in SkTDivMod() 200 *mod = static_cast<Out>(numer%denom); in SkTDivMod()
|
D | SkFixed.h | 86 #define SkFixedDiv(numer, denom) SkDivBits(numer, denom, 16) argument 89 #define SkFixedDiv(numer, denom) \ argument 90 SkToS32(SkTPin<int64_t>((SkLeftShift((int64_t)numer, 16) / denom), SK_MinS32, SK_MaxS32))
|
/external/webrtc/webrtc/modules/video_coding/utility/ |
D | frame_dropper.cc | 195 float denom = 1.0f - _dropRatio.filtered(); in DropFrame() local 196 if (denom < 1e-5) { in DropFrame() 197 denom = 1e-5f; in DropFrame() 199 int32_t limit = static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f); in DropFrame() 228 float denom = _dropRatio.filtered(); in DropFrame() local 229 if (denom < 1e-5) { in DropFrame() 230 denom = 1e-5f; in DropFrame() 232 int32_t limit = -static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f); in DropFrame()
|
/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/opencv3/modules/imgproc/src/ |
D | phasecorr.cpp | 203 double denom = (double)dataB[j*stepB]*dataB[j*stepB] + in divSpectrums() local 212 dataC[j*stepC] = (float)(re / denom); in divSpectrums() 213 dataC[(j+1)*stepC] = (float)(im / denom); in divSpectrums() 219 double denom = (double)dataB[j*stepB]*dataB[j*stepB] + in divSpectrums() local 228 dataC[j*stepC] = (float)(re / denom); in divSpectrums() 229 dataC[(j+1)*stepC] = (float)(im / denom); in divSpectrums() 248 double denom = (double)(dataB[j]*dataB[j] + dataB[j+1]*dataB[j+1] + eps); in divSpectrums() local 251 dataC[j] = (float)(re / denom); in divSpectrums() 252 dataC[j+1] = (float)(im / denom); in divSpectrums() 257 double denom = (double)(dataB[j]*dataB[j] + dataB[j+1]*dataB[j+1] + eps); in divSpectrums() local [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
D | smooth.c | 36 int32_t B_W32, denom, num; in WebRtcIlbcfix_Smooth() local 138 denom = WebRtcSpl_DivW32W16(endiff, (int16_t)(w00w00 >> 16)); in WebRtcIlbcfix_Smooth() 140 denom = 65536; in WebRtcIlbcfix_Smooth() 143 if( denom > 7){ /* eliminates numerical problems in WebRtcIlbcfix_Smooth() 146 scale=WebRtcSpl_GetSizeInBits(denom)-15; in WebRtcIlbcfix_Smooth() 150 denomW16 = (int16_t)(denom >> scale); in WebRtcIlbcfix_Smooth() 156 denomW16=(int16_t)denom; in WebRtcIlbcfix_Smooth()
|
/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/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/opencv3/3rdparty/openexr/IlmImf/ |
D | ImfRational.cpp | 67 denom (double x, double e) in denom() function 83 return denom (frac (1 / r, e), e / square (x * r)) + in denom() 84 floor (1 / x + e) * denom (frac (1 / x, e), e / square (x)); in denom() 120 d = (unsigned int) denom (x, e); in Rational()
|
/external/skia/tests/ |
D | MathTest.cpp | 562 SkFixed denom = rand.nextS(); in DEF_TEST() local 563 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST() 564 int64_t check = SkLeftShift((int64_t)numer, 16) / denom; in DEF_TEST() 567 (void)SkCLZ(denom); in DEF_TEST() 576 ERRORF(reporter, "\nFixed Divide: %8x / %8x -> %8x %8x\n", numer, denom, result, check); in DEF_TEST() 633 T denom; in test_divmod() member 647 const T denom = kEdgeCases[i].denom; in test_divmod() local 649 SkTDivMod(numer, denom, &div, &mod); in test_divmod() 650 REPORTER_ASSERT(r, numer/denom == div); in test_divmod() 651 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod() [all …]
|
/external/opencv3/modules/imgproc/test/ |
D | test_templmatch.cpp | 282 double denom; in cvTsMatchTemplate() local 287 denom = a_sum2.val[0] + a_sum2.val[1] + a_sum2.val[2]; in cvTsMatchTemplate() 291 denom = a_sum2.val[0] - (a_sum.val[0]*a_sum.val[0])/area; in cvTsMatchTemplate() 292 denom += a_sum2.val[1] - (a_sum.val[1]*a_sum.val[1])/area; in cvTsMatchTemplate() 293 denom += a_sum2.val[2] - (a_sum.val[2]*a_sum.val[2])/area; in cvTsMatchTemplate() 295 denom = sqrt(MAX(denom,0))*b_denom; in cvTsMatchTemplate() 296 if( fabs(value) < denom ) in cvTsMatchTemplate() 297 value /= denom; in cvTsMatchTemplate() 298 else if( fabs(value) < denom*1.125 ) in cvTsMatchTemplate()
|
/external/opencv3/3rdparty/openexr/Imath/ |
D | ImathLine.h | 154 T denom = a*a - 1; in closestPointTo() local 156 T absDenom = ((denom >= 0)? denom: -denom); in closestPointTo() 166 return pos + dir * (num / denom); in closestPointTo()
|
/external/skia/src/pathops/ |
D | SkDLineIntersection.cpp | 49 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; in intersectRay() local 53 numerA /= denom; in intersectRay() 54 numerB /= denom; in intersectRay() 56 if (!approximately_zero(denom)) { in intersectRay() 118 double denom = axByLen - ayBxLen; in intersect() local 119 if (between(0, numerA, denom) && between(0, numerB, denom)) { in intersect() 120 fT[0][0] = numerA / denom; in intersect() 121 fT[1][0] = numerB / denom; in intersect()
|
D | SkPathOpsLine.cpp | 38 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay in nearPoint() local 41 if (!between(0, numer, denom)) { in nearPoint() 44 if (!denom) { in nearPoint() 47 double t = numer / denom; in nearPoint() 68 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay in nearRay() local 71 double t = numer / denom; in nearRay()
|
/external/opencv3/3rdparty/include/ |
D | msc_inttypes.h | 276 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) in imaxdiv() argument 280 result.quot = numer / denom; in imaxdiv() 281 result.rem = numer % denom; in imaxdiv() 286 result.rem -= denom; in imaxdiv()
|
/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/libjpeg-turbo/ |
D | tjunittest.c | 189 int halfway=16*sf.num/sf.denom; in checkBuf() 190 int blocksize=8*sf.num/sf.denom; in checkBuf() 306 int halfway=16*sf.num/sf.denom; in checkBufYUV() 307 int blocksize=8*sf.num/sf.denom; in checkBufYUV() 326 int halfway=16/vsf*sf.num/sf.denom; in checkBufYUV() 486 if(sf.num!=1 || sf.denom!=1) in _decompTest() 487 printf("%d/%d ... ", sf.num, sf.denom); in _decompTest() 505 if(sf.num!=1 || sf.denom!=1) in _decompTest() 506 printf("%d/%d ... ", sf.num, sf.denom); in _decompTest() 535 (sf[i].denom==2 || sf[i].denom==1)) || in decompTest() [all …]
|
/external/aac/libFDK/src/ |
D | fixpoint_math.cpp | 571 FIXP_DBL fDivNorm(FIXP_DBL num, FIXP_DBL denom) in fDivNorm() argument 576 FDK_ASSERT (denom >= num); in fDivNorm() 578 res = fDivNorm(num, denom, &e); in fDivNorm() 596 FIXP_DBL fDivNormHighPrec(FIXP_DBL num, FIXP_DBL denom, INT *result_e) in fDivNormHighPrec() argument 602 FDK_ASSERT (denom > (FIXP_DBL)0); in fDivNormHighPrec() 615 norm_den = CountLeadingBits(denom); in fDivNormHighPrec() 616 denom = denom << norm_den; in fDivNormHighPrec() 619 div = schur_div(num, denom, 31); in fDivNormHighPrec()
|
/external/webrtc/webrtc/modules/audio_processing/aec/ |
D | aec_resampler.c | 155 float denom = 0; in EstimateSkew() local 201 denom = x2 - xAvg * x; in EstimateSkew() 203 if (denom != 0) { in EstimateSkew() 204 skew = (xy - xAvg * y) / denom; in EstimateSkew()
|
/external/webrtc/webrtc/system_wrappers/source/ |
D | tick_util.cc | 36 timebase_from_millisecond_fract = (timebase.denom * 1e6) / timebase.numer; in MillisecondsToTicks() 55 timebase_microsecond_fract = timebase.numer / (timebase.denom * 1e6); in TicksToMilliseconds() 74 timebase_microsecond_fract = timebase.numer / (timebase.denom * 1e3); in TicksToMicroseconds()
|
/external/clang/test/CodeGen/ |
D | uint128_t.c | 5 extern uint64_t denom; 14 tmp /= denom; in f()
|
/external/jdiff/src/jdiff/ |
D | APIComparator.java | 123 Long denom = new Long(oldAPI.packages_.size() + newAPI.packages_.size()); in compareAPIs() local 125 if (denom.intValue() == 0) { in compareAPIs() 130 System.out.println("Top level changes: " + differs + "/" + denom.intValue()); in compareAPIs() 131 differs = (100.0 * differs)/denom.doubleValue(); in compareAPIs() 226 Long denom = new Long(oldPkg.classes_.size() + newPkg.classes_.size()); in comparePackages() local 228 if (denom.intValue() == 0) { in comparePackages() 233 …t.println("Package " + pkgDiff.name_ + " had a difference of " + differs + "/" + denom.intValue()); in comparePackages() 234 pkgDiff.pdiff = 100.0 * differs/denom.doubleValue(); in comparePackages() 235 return differs/denom.doubleValue(); in comparePackages() 326 Long denom = new Long( in compareClasses() local [all …]
|
/external/compiler-rt/lib/builtins/ppc/ |
D | divtc3.c | 36 const long double denom = __gcc_qadd(__gcc_qmul(cDD.ld, cDD.ld), __gcc_qmul(dDD.ld, dDD.ld)); in __divtc3() local 40 DD real = { .ld = __gcc_qdiv(realNumerator, denom) }; in __divtc3() 41 DD imag = { .ld = __gcc_qdiv(imagNumerator, denom) }; in __divtc3() 52 DD rDD = { .ld = denom }; in __divtc3()
|