Home
last modified time | relevance | path

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

/external/skia/include/core/
DSkMath.h112 #define SkCLZ(x) __builtin_clz(x) macro
115 #ifndef SkCLZ
116 #define SkCLZ(x) SkCLZ_portable(x) macro
127 return 1 << (32 - SkCLZ(value - 1)); in SkNextPow2()
140 return 32 - SkCLZ(value - 1); in SkNextLog2()
/external/skia/src/core/
DSk64.cpp35 return hi ? SkCLZ(hi) : SkCLZ(lo) + 32; in getClzAbs()
120 return 33 - SkCLZ(hi); in shiftToMake32()
239 int dbits = SkCLZ(denom); in div()
240 int nbits = SkCLZ(hi); in div()
333 int nclz = N.fHi ? SkCLZ(N.fHi) : 32; in getFixedDiv()
334 int dclz = D.fHi ? SkCLZ(D.fHi) : (33 - (D.fLo >> 31)); in getFixedDiv()
DSkFloatBits.cpp169 int bias = 8 - SkCLZ(value); in SkIntToFloatCast()
175 int zeros = SkCLZ(value << 8); in SkIntToFloatCast()
201 int zeros = SkCLZ(value << 8); in SkIntToFloatCast_NoOverflowCheck()
DSkMath.cpp231 int lz = SkCLZ(a); in SkFixedFastInvert()
270 int nbits = SkCLZ(numer) - 1; in SkDivBits()
271 int dbits = SkCLZ(denom) - 1; in SkDivBits()
DSkFloat.cpp71 int bias = 8 - SkCLZ(value); in SetShift()
78 int zeros = SkCLZ(value << 8); in SetShift()
DSkPoint.cpp244 int zeros = SkCLZ(x | y); in setLength()
314 int shift = SkCLZ(x | y); in setLength()
DSkEdge.cpp166 return (32 - SkCLZ(dist)) >> 1; in diff_to_shift()
DSkScan_Hairline.cpp295 int level = (33 - SkCLZ(d)) >> 1; in hair_path()
DSkMatrix.cpp877 clzNumer = SkCLZ(value); in invert()
885 clzNumer = SkCLZ(SkAbs32(tx.fHi) | SkAbs32(ty.fHi)); in invert()
DSkBitmap.cpp1217 int clz = SkCLZ(sx); in ComputeMipLevel()
/external/skia/tests/
DPathCoverageTest.cpp50 int shift = 30 - SkCLZ(distance); in estimate_pointCount()
DMathTest.cpp444 (void)SkCLZ(numer); in TestMath()
445 (void)SkCLZ(denom); in TestMath()
/external/skia/src/effects/
DSkColorMatrixFilter.cpp146 int bits = SkCLZ(max); in setup()
DSkGradientShader.cpp2211 int nbits = SkCLZ(numer); in div_64()
2212 int dbits = SkCLZ(denom); in div_64()