Home
last modified time | relevance | path

Searched refs:numer (Results 1 – 14 of 14) sorted by relevance

/external/skia/src/core/
DSkMath.cpp263 if ((numer = (numer << 1) - denom) >= 0) \
264 result |= 1 << (n - 1); else numer += denom
266 int32_t SkDivBits(int32_t numer, int32_t denom, int shift_bias) { in SkDivBits() argument
268 if (numer == 0) { in SkDivBits()
273 int32_t sign = SkExtractSign(numer ^ denom); in SkDivBits()
274 numer = SkAbs32(numer); in SkDivBits()
277 int nbits = SkCLZ(numer) - 1; in SkDivBits()
289 numer <<= nbits; in SkDivBits()
294 if ((numer -= denom) >= 0) { in SkDivBits()
297 numer += denom; in SkDivBits()
[all …]
DSkGeometry.cpp60 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) in valid_unit_divide() argument
64 if (numer < 0) in valid_unit_divide()
66 numer = -numer; in valid_unit_divide()
70 if (denom == 0 || numer == 0 || numer >= denom) in valid_unit_divide()
73 SkScalar r = SkScalarDiv(numer, denom); in valid_unit_divide()
339 Sk64 numer, denom, tmp; in SkChopQuadAtMaxCurvature() local
341 numer.setMul(Ax, -Bx); in SkChopQuadAtMaxCurvature()
343 numer.add(tmp); in SkChopQuadAtMaxCurvature()
345 if (numer.isPos()) // do nothing if numer <= 0 in SkChopQuadAtMaxCurvature()
351 if (numer < denom) in SkChopQuadAtMaxCurvature()
[all …]
DSkColor.cpp53 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { in ByteDivToScalar() argument
55 return SkIntToScalar(numer) / (int)denom; in ByteDivToScalar()
DSkMatrix.cpp218 static inline SkFixed roundidiv(SkFixed numer, int denom) { in roundidiv() argument
219 int ns = numer >> 31; in roundidiv()
221 numer = (numer ^ ns) - ns; in roundidiv()
224 SkFixed answer = (numer + (denom >> 1)) / denom; in roundidiv()
/external/skia/include/core/
DSkFixed.h116 #define SkFixedDiv(numer, denom) SkDivBits(numer, denom, 16) argument
117 SkFixed SkFixedDivInt(int32_t numer, int32_t denom);
118 SkFixed SkFixedMod(SkFixed numer, SkFixed denom);
125 #define SkFractDiv(numer, denom) SkDivBits(numer, denom, 30) argument
DSkMath.h41 int32_t SkDivBits(int32_t numer, int32_t denom, int shift);
/external/skia/src/effects/
DSkGradientShader.cpp1216 static unsigned div_64(int numer, int denom) in div_64() argument
1218 SkASSERT(numer <= denom); in div_64()
1219 SkASSERT(numer > 0); in div_64()
1222 int nbits = SkCLZ(numer); in div_64()
1231 numer <<= nbits - 1; in div_64()
1236 if ((numer -= denom) >= 0) in div_64()
1239 numer += denom; in div_64()
1248 if ((numer = (numer << 1) - denom) >= 0) in div_64()
1251 numer += denom; in div_64()
1253 if ((numer = (numer << 1) - denom) >= 0) in div_64()
[all …]
DSkEmbossMask.cpp128 SkFixed numer = lx * nx + ly * ny + lz_dot_nz; in Emboss() local
132 if (numer > 0) // preflight when numer/denom will be <= 0 in Emboss()
136 SkFixed dot = numer / denom; in Emboss()
143 …SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)]… in Emboss()
/external/skia/experimental/
DSkSetPoly3To3_A.cpp12 static SkScalar div(SkDScalar numer, SkDScalar denom) { in div() argument
14 return numer / denom; in div()
22 static SkScalar div(SkDScalar numer, SkDScalar denom) { in div() argument
23 return static_cast<float>(numer / denom); in div()
/external/skia/test/
DSkSetPoly3To3_A.cpp12 static SkScalar div(SkDScalar numer, SkDScalar denom) { in div() argument
14 return numer / denom; in div()
22 static SkScalar div(SkDScalar numer, SkDScalar denom) { in div() argument
23 return static_cast<float>(numer / denom); in div()
/external/dhcpcd/
Dcommon.c227 factor = (double)info.numer / (double)info.denom; in get_monotonic()
234 if ((info.denom != 1 || info.numer != 1) && factor != 0.0) in get_monotonic()
/external/skia/src/gl/
DSkGLDevice.cpp544 #define SkDiv16ToScalar(numer, denom) (SkIntToFixed(numer) / (denom)) argument
546 #define SkDiv16ToScalar(numer, denom) SkScalarDiv(numer, denom) argument
/external/webkit/JavaScriptCore/tests/mozilla/ecma_3/RegExp/
Dregress-209067.js96 numer=1;
100 return (numer++) +'. ' + p;
/external/e2fsprogs/po/
Dpl.po1640 msgstr "B��dny numer i-w�z�a dla '.' w i-w�le @du %i.\n"
1645 msgstr "@E ma b��dny numer i-w�z�a: %Di.\n"
1898 msgstr "@p i-w�le @du HTREE %d (%q): b��dny numer @bu %b.\n"
3272 "\tsuperblock=<numer superbloku>\n"