Home
last modified time | relevance | path

Searched refs:SkAbs32 (Results 1 – 23 of 23) sorted by relevance

/external/skia/src/core/
DSkPoint.cpp195 unsigned x = SkAbs32(ox); in setLength()
196 unsigned y = SkAbs32(oy); in setLength()
262 SkFixed x = SkAbs32(ox); in setLength()
263 SkFixed y = SkAbs32(oy); in setLength()
299 err = SkAbs32(err); in setLength()
306 float fx = SkAbs32(ox)/65536.0f; in setLength()
307 float fy = SkAbs32(oy)/65536.0f; in setLength()
313 err = SkMax32(SkAbs32(xx-x), SkAbs32(yy-y)); in setLength()
DSkMath.cpp93 a = SkAbs32(a); in SkMulShift()
94 b = SkAbs32(b); in SkMulShift()
274 numer = SkAbs32(numer); in SkDivBits()
275 denom = SkAbs32(denom); in SkDivBits()
527 SkASSERT(SkAbs32(diff) <= 7); in SkFixedSinCos()
DSkEdge.cpp151 dx = SkAbs32(dx); in cheap_distance()
152 dy = SkAbs32(dy); in cheap_distance()
314 return SkMax32(SkAbs32(oneThird), SkAbs32(twoThird)); in cubic_delta_from_line()
DSkUnPreMultiply.cpp68 int diff = SkAbs32(test - div); in SkUnPreMultiply_BuildTable()
DSkScan_Antihair.cpp213 if (SkAbs32(x1 - x0) > SkIntToFDot6(511) || SkAbs32(y1 - y0) > SkIntToFDot6(511)) in do_anti_hairline()
233 if (SkAbs32(x1 - x0) > SkAbs32(y1 - y0)) // mostly horizontal in do_anti_hairline()
DSkStroke.cpp543 SkFixed mask = SkAbs32(r.fLeft); in needs_to_shrink()
544 mask |= SkAbs32(r.fTop); in needs_to_shrink()
545 mask |= SkAbs32(r.fRight); in needs_to_shrink()
546 mask |= SkAbs32(r.fBottom); in needs_to_shrink()
DSkEdge.h67 SkASSERT(SkAbs32(fWinding) == 1); in validate()
DSkFloat.cpp348 SkASSERT(SkAbs32(diff) <= 1); in UnitTest()
363 SkASSERT(SkAbs32(diff) <= 3); in UnitTest()
DSkMatrix.cpp498 int32_t hi = SkAbs32(tmp1.fHi); in fixmuladdmulshiftmul()
760 if (SkAbs32(inv->fMat[kMPersp2]) > SK_Fixed1) { in invert()
782 int32_t value = SkAbs32(fMat[kMScaleY]); in invert()
783 value |= SkAbs32(fMat[kMSkewX]); in invert()
784 value |= SkAbs32(fMat[kMScaleX]); in invert()
785 value |= SkAbs32(fMat[kMSkewY]); in invert()
794 clzNumer = SkCLZ(SkAbs32(tx.fHi) | SkAbs32(ty.fHi)); in invert()
988 SkASSERT(src == dst || SkAbs32((int32_t)(src - dst)) >= count); in mapPoints()
1171 #define PerspNearlyZero(x) (SkAbs32(x) < (SK_Fract1 >> 26))
DSkScan_Hairline.cpp85 if (SkAbs32(dx) > SkAbs32(dy)) // mostly horizontal in HairLine()
DSkGraphics.cpp364 if (SkAbs32(c1 - c2) > 1) in Init()
390 if (SkAbs32(c1 - c2) > 1) in Init()
DSkFloat.h82 SkASSERT(SkAbs32(d) <= tolerance);
DSk64.cpp216 denom = SkAbs32(denom); in div()
DSkBitmapShader.cpp24 dx = SkAbs32(dx);
25 dy = SkAbs32(dy);
DSkBitmap.cpp951 sx = SkAbs32(sx); in ComputeMipLevel()
952 sy = SkAbs32(sy); in ComputeMipLevel()
/external/skia/src/effects/
DSkAvoidXfermode.cpp66 unsigned dr = SkAbs32(SkGetPackedR16(c) - r); in color_dist16()
67 unsigned dg = SkAbs32(SkGetPackedG16(c) - g) >> (SK_G16_BITS - SK_R16_BITS); in color_dist16()
68 unsigned db = SkAbs32(SkGetPackedB16(c) - b); in color_dist16()
80 unsigned dr = SkAbs32(SkGetPackedR4444(c) - r); in color_dist4444()
81 unsigned dg = SkAbs32(SkGetPackedG4444(c) - g); in color_dist4444()
82 unsigned db = SkAbs32(SkGetPackedB4444(c) - b); in color_dist4444()
94 unsigned dr = SkAbs32(SkGetPackedR32(c) - r); in color_dist32()
95 unsigned dg = SkAbs32(SkGetPackedG32(c) - g); in color_dist32()
96 unsigned db = SkAbs32(SkGetPackedB32(c) - b); in color_dist32()
DSkEmbossMask.cpp143 …SkFixed dot = (unsigned)(numer >> 4) * gInvSqrtTable[(SkAbs32(nx) >> 1 << 7) | (SkAbs32(ny) >> 1)]… in Emboss()
DSkColorMatrixFilter.cpp129 value = SkAbs32(value); in setup()
/external/skia/include/core/
DSkFixed.h103 #define SkFixedAbs(x) SkAbs32(x)
110 uint32_t a = SkAbs32(value); in SkFixedSquare_portable()
148 return SkAbs32(x) < tolerance;
DSkTypes.h204 inline int32_t SkAbs32(int32_t value) in SkAbs32() function
/external/webkit/WebCore/platform/graphics/android/
DGraphicsContextAndroid.cpp431 const int idx = SkAbs32(point2.x() - point1.x()); in drawLine()
432 const int idy = SkAbs32(point2.y() - point1.y()); in drawLine()
/external/skia/src/animator/
DSkScript.cpp1525 else if (SkAbs32(operand.fS32) == SK_MaxS32) in ConvertTo()
1573 else if (SkAbs32(s32) == SK_MaxS32) in IntToScalar()
DSkScriptTokenizer.cpp1235 else if (SkAbs32(s32) == SK_MaxS32) in IntToScalar()