Home
last modified time | relevance | path

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

/external/skqp/src/core/
DSkMathPriv.h141 #ifndef SkCLZ
145 static inline int SkCLZ(uint32_t mask) { in SkCLZ() function
158 static inline int SkCLZ(uint32_t mask) { in SkCLZ() function
163 #define SkCLZ(x) SkCLZ_portable(x) macro
174 return 1 << (32 - SkCLZ(value - 1)); in SkNextPow2()
184 return 1 << (32 - SkCLZ(value >> 1)); in SkPrevPow2()
198 return 32 - SkCLZ(value - 1); in SkNextLog2()
212 return 32 - SkCLZ(value >> 1); in SkPrevLog2()
221 return n ? (1 << (32 - SkCLZ(n - 1))) : 1; in GrNextPow2()
DSkEdge.cpp178 return (32 - SkCLZ(dist)) >> 1; in diff_to_shift()
DSkMipMap.cpp507 const int leadingZeros = SkCLZ(static_cast<uint32_t>(largestAxis)); in ComputeLevelCount()
DSkScan_Hairline.cpp440 int level = (33 - SkCLZ(d)) >> 1; in compute_quad_level()
/external/skia/src/core/
DSkMathPriv.h155 static inline int SkCLZ(uint32_t mask) { in SkCLZ() function
168 static inline int SkCLZ(uint32_t mask) { in SkCLZ() function
173 static inline int SkCLZ(uint32_t mask) { in SkCLZ() function
227 return 32 - SkCLZ(value - 1); in SkNextLog2()
246 return 32 - SkCLZ(value >> 1); in SkPrevLog2()
290 return n ? (1 << (32 - SkCLZ(n - 1))) : 1; in GrNextPow2()
DSkEdge.cpp178 return (32 - SkCLZ(dist)) >> 1; in diff_to_shift()
DSkMipmap.cpp671 const int leadingZeros = SkCLZ(static_cast<uint32_t>(largestAxis)); in ComputeLevelCount()
DSkScan_Hairline.cpp449 int level = (33 - SkCLZ(d)) >> 1; in compute_quad_level()
/external/skia/tests/
DMathTest.cpp24 REPORTER_ASSERT(reporter, 32 == SkCLZ(0)); in test_clz()
25 REPORTER_ASSERT(reporter, 31 == SkCLZ(1)); in test_clz()
26 REPORTER_ASSERT(reporter, 1 == SkCLZ(1 << 30)); in test_clz()
27 REPORTER_ASSERT(reporter, 1 == SkCLZ((1 << 30) | (1 << 24) | 1)); in test_clz()
28 REPORTER_ASSERT(reporter, 0 == SkCLZ(~0U)); in test_clz()
36 int intri = SkCLZ(mask); in test_clz()
494 (void)SkCLZ(numer); in DEF_TEST()
495 (void)SkCLZ(denom); in DEF_TEST()
DPathCoverageTest.cpp50 int shift = 30 - SkCLZ(distance); in estimate_pointCount()
DSubsetPath.cpp18 int leadingZero = SkCLZ(fSubset); in range()
/external/skqp/tests/
DMathTest.cpp20 REPORTER_ASSERT(reporter, 32 == SkCLZ(0)); in test_clz()
21 REPORTER_ASSERT(reporter, 31 == SkCLZ(1)); in test_clz()
22 REPORTER_ASSERT(reporter, 1 == SkCLZ(1 << 30)); in test_clz()
23 REPORTER_ASSERT(reporter, 0 == SkCLZ(~0U)); in test_clz()
31 int intri = SkCLZ(mask); in test_clz()
462 (void)SkCLZ(numer); in DEF_TEST()
463 (void)SkCLZ(denom); in DEF_TEST()
DPathCoverageTest.cpp50 int shift = 30 - SkCLZ(distance); in estimate_pointCount()
DSubsetPath.cpp17 int leadingZero = SkCLZ(fSubset); in range()
/external/skia/src/gpu/
DGrRectanizerPow2.h65 int index = 32 - SkCLZ(height - 1); in HeightToRowIndex()
DGrGpu.cpp159 32 - SkCLZ(static_cast<uint32_t>(std::max(dimensions.fWidth, dimensions.fHeight))); in createTexture()
/external/skqp/src/gpu/
DGrRectanizer_pow2.h63 int index = 32 - SkCLZ(height - 1); in HeightToRowIndex()
/external/skqp/bench/
DMathBench.cpp427 accum += SkCLZ(fData[i]); in onDraw()
/external/skia/bench/
DMathBench.cpp427 accum += SkCLZ(fData[i]); in onDraw()
/external/skqp/src/gpu/ccpr/
DGrCCFiller.cpp100 int64_t tessellationWork = (int64_t)numVerbs * (32 - SkCLZ(numVerbs)); // N log N. in parseDeviceSpaceFill()