Home
last modified time | relevance | path

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

/external/skia/include/core/
DSkMath.h74 #ifndef SkCLZ
78 static inline int SkCLZ(uint32_t mask) { in SkCLZ() function
91 static inline int SkCLZ(uint32_t mask) { in SkCLZ() function
96 #define SkCLZ(x) SkCLZ_portable(x) macro
132 return 1 << (32 - SkCLZ(value - 1)); in SkNextPow2()
146 return 32 - SkCLZ(value - 1); in SkNextLog2()
/external/skia/src/core/
DSkMath.cpp64 int nbits = SkCLZ(numer) - 1; in SkDivBits()
65 int dbits = SkCLZ(denom) - 1; in SkDivBits()
DSkFloatBits.cpp186 int bias = 8 - SkCLZ(value); in SkIntToFloatCast()
192 int zeros = SkCLZ(value << 8); in SkIntToFloatCast()
DSkMipMap.cpp346 const int leadingZeros = SkCLZ(static_cast<uint32_t>(smallestAxis)); in ComputeLevelCount()
DSkEdge.cpp173 return (32 - SkCLZ(dist)) >> 1; in diff_to_shift()
DSkScan_Hairline.cpp402 int level = (33 - SkCLZ(d)) >> 1; in compute_quad_level()
/external/skia/tests/
DMathTest.cpp19 REPORTER_ASSERT(reporter, 32 == SkCLZ(0)); in test_clz()
20 REPORTER_ASSERT(reporter, 31 == SkCLZ(1)); in test_clz()
21 REPORTER_ASSERT(reporter, 1 == SkCLZ(1 << 30)); in test_clz()
22 REPORTER_ASSERT(reporter, 0 == SkCLZ(~0U)); in test_clz()
30 int intri = SkCLZ(mask); in test_clz()
566 (void)SkCLZ(numer); in DEF_TEST()
567 (void)SkCLZ(denom); in DEF_TEST()
DPathCoverageTest.cpp50 int shift = 30 - SkCLZ(distance); in estimate_pointCount()
DSubsetPath.cpp16 int leadingZero = SkCLZ(fSubset); in range()
/external/skia/src/gpu/
DGrRectanizer_pow2.h61 int index = 32 - SkCLZ(height - 1); in HeightToRowIndex()
/external/skia/include/gpu/
DGrTypes.h114 return n ? (1 << (32 - SkCLZ(n - 1))) : 1; in GrNextPow2()
119 return n ? (1 << (32 - SkCLZ(n - 1))) : 1; in GrNextPow2()
/external/skia/src/effects/gradients/
DSkClampRange.cpp18 return count + SkCLZ(SkToU32(value)); in SkCLZ64()
/external/skia/bench/
DMathBench.cpp435 accum += SkCLZ(fData[i]); in onDraw()
/external/skia/src/utils/
DSkTextureCompressor_ASTC.cpp388 return 31 - SkCLZ(x); in bits_for_range()