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.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.cpp508 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/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/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/skqp/src/gpu/
DGrRectanizer_pow2.h63 int index = 32 - SkCLZ(height - 1); in HeightToRowIndex()
/external/skia/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/skia/src/gpu/ccpr/
DGrCCFiller.cpp100 int64_t tessellationWork = (int64_t)numVerbs * (32 - SkCLZ(numVerbs)); // N log N. in parseDeviceSpaceFill()
/external/skqp/src/gpu/ccpr/
DGrCCFiller.cpp100 int64_t tessellationWork = (int64_t)numVerbs * (32 - SkCLZ(numVerbs)); // N log N. in parseDeviceSpaceFill()