/external/chromium_org/third_party/skia/experimental/Intersection/ |
D | Extrema.cpp | 10 static int validUnitDivide(double numer, double denom, double* ratio) in validUnitDivide() argument 12 if (numer < 0) { in validUnitDivide() 13 numer = -numer; in validUnitDivide() 16 if (denom == 0 || numer == 0 || numer >= denom) in validUnitDivide() 18 double r = numer / denom; in validUnitDivide()
|
/external/skia/experimental/Intersection/ |
D | Extrema.cpp | 10 static int validUnitDivide(double numer, double denom, double* ratio) in validUnitDivide() argument 12 if (numer < 0) { in validUnitDivide() 13 numer = -numer; in validUnitDivide() 16 if (denom == 0 || numer == 0 || numer >= denom) in validUnitDivide() 18 double r = numer / denom; in validUnitDivide()
|
/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 76 if (numer == 0) { in SkDivBits() 81 int32_t sign = SkExtractSign(numer ^ denom); in SkDivBits() 82 numer = SkAbs32(numer); in SkDivBits() 85 int nbits = SkCLZ(numer) - 1; in SkDivBits() 97 numer <<= nbits; 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 76 if (numer == 0) { in SkDivBits() 81 int32_t sign = SkExtractSign(numer ^ denom); in SkDivBits() 82 numer = SkAbs32(numer); in SkDivBits() 85 int nbits = SkCLZ(numer) - 1; in SkDivBits() 97 numer <<= nbits; in SkDivBits() 102 if ((numer -= denom) >= 0) { in SkDivBits() 105 numer += denom; in SkDivBits()
|
D | SkColor.cpp | 29 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { in ByteDivToScalar() argument 31 return SkIntToScalar(numer) / (int)denom; in ByteDivToScalar()
|
/external/skia/include/core/ |
D | SkMath.h | 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()
|
D | SkFixed.h | 83 #define SkFixedDiv(numer, denom) SkDivBits(numer, denom, 16) argument
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkMath.h | 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()
|
D | SkFixed.h | 83 #define SkFixedDiv(numer, denom) SkDivBits(numer, denom, 16) argument
|
/external/skia/tests/ |
D | MathTest.cpp | 471 SkFixed numer = 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() 476 (void)SkCLZ(numer); in DEF_TEST() 539 T numer; in test_divmod() member 553 const T numer = kEdgeCases[i].numer; 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() 563 const T numer = (T)rand.nextS(); in test_divmod() local [all …]
|
/external/chromium_org/third_party/skia/tests/ |
D | MathTest.cpp | 469 SkFixed numer = 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() 474 (void)SkCLZ(numer); in DEF_TEST() 537 T numer; in test_divmod() member 551 const T numer = kEdgeCases[i].numer; 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() 561 const T numer = (T)rand.nextS(); 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() 287 if (numer < 0 && result.rem > 0) { 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() 287 if (numer < 0 && result.rem > 0) { in imaxdiv()
|
/external/clang/test/CodeGen/ |
D | uint128_t.c | 4 extern uint64_t numer; 13 tmp *= numer; 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() 295 if (numer < 0 && result.rem > 0) { in imaxdiv()
|
/external/skia/src/effects/ |
D | SkEmbossMask.cpp | 112 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; in Emboss() local 116 if (numer > 0) { // preflight when numer/denom will be <= 0 in Emboss() 119 SkFixed dot = numer / denom; in Emboss() 126 …SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)]… in Emboss()
|
/external/chromium_org/third_party/skia/src/effects/ |
D | SkEmbossMask.cpp | 112 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; in Emboss() local 116 if (numer > 0) { // preflight when numer/denom will be <= 0 in Emboss() 119 SkFixed dot = numer / denom; in Emboss() 126 …SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)]… in Emboss()
|
/external/skia/src/pathops/ |
D | SkPathOpsQuad.cpp | 300 static int valid_unit_divide(double numer, double denom, double* ratio) in valid_unit_divide() argument 302 if (numer < 0) { in valid_unit_divide() 303 numer = -numer; in valid_unit_divide() 306 if (denom == 0 || numer == 0 || numer >= denom) { in valid_unit_divide() 309 double r = numer / denom; in valid_unit_divide()
|
D | SkPathOpsLine.cpp | 75 double numer = len.fX * ab0.fX + ab0.fY * len.fY; in nearPoint() local 76 if (!between(0, numer, denom)) { in nearPoint() 79 double t = numer / denom; in nearPoint() 102 double numer = len.fX * ab0.fX + ab0.fY * len.fY; in nearRay() local 103 double t = numer / denom; in nearRay()
|
/external/chromium_org/third_party/skia/src/pathops/ |
D | SkPathOpsQuad.cpp | 300 static int valid_unit_divide(double numer, double denom, double* ratio) in valid_unit_divide() argument 302 if (numer < 0) { in valid_unit_divide() 303 numer = -numer; in valid_unit_divide() 306 if (denom == 0 || numer == 0 || numer >= denom) { in valid_unit_divide() 309 double r = numer / denom; in valid_unit_divide()
|
D | SkPathOpsLine.cpp | 75 double numer = len.fX * ab0.fX + ab0.fY * len.fY; in nearPoint() local 76 if (!between(0, numer, denom)) { in nearPoint() 79 double t = numer / denom; in nearPoint() 102 double numer = len.fX * ab0.fX + ab0.fY * len.fY; in nearRay() local 103 double t = numer / denom; in nearRay()
|
/external/libcxx/include/ |
D | cstdlib | 67 div_t div( int numer, int denom); 68 ldiv_t div( long numer, long denom); 69 lldiv_t div(long long numer, long long denom); // C++0X 70 ldiv_t ldiv( long numer, long denom); 71 lldiv_t lldiv(long long numer, long long denom); // C99
|
/external/libcxx/src/ |
D | chrono.cpp | 77 return static_cast<double>(MachInfo.numer) / MachInfo.denom; in compute_steady_factor() 96 if (MachInfo.numer == MachInfo.denom) in init_steady_clock()
|
/external/chromium_org/media/formats/mp4/ |
D | track_run_iterator.h | 24 base::TimeDelta MEDIA_EXPORT TimeDeltaFromRational(int64 numer, int64 denom); 25 DecodeTimestamp MEDIA_EXPORT DecodeTimestampFromRational(int64 numer,
|
/external/chromium_org/third_party/skia/experimental/ |
D | SkSetPoly3To3_A.cpp | 18 static SkScalar divide(SkDScalar numer, SkDScalar denom) { in divide() argument 19 return static_cast<float>(numer / denom); in divide()
|