Home
last modified time | relevance | path

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

/third_party/flutter/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()
/third_party/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()
DSkScan_Hairline.cpp449 int level = (33 - SkCLZ(d)) >> 1; in compute_quad_level()
DSkMipmap.cpp674 const int leadingZeros = SkCLZ(static_cast<uint32_t>(largestAxis)); in ComputeLevelCount()
/third_party/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()
/third_party/flutter/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()
/third_party/flutter/skia/src/gpu/
DGrRectanizer_pow2.h63 int index = 32 - SkCLZ(height - 1); in HeightToRowIndex()
/third_party/skia/src/gpu/
DGrRectanizerPow2.h65 int index = 32 - SkCLZ(height - 1); in HeightToRowIndex()
DGrGpu.cpp163 32 - SkCLZ(static_cast<uint32_t>(std::max(dimensions.fWidth, dimensions.fHeight))); in createTexture()
/third_party/flutter/skia/bench/
DMathBench.cpp427 accum += SkCLZ(fData[i]); in onDraw()
/third_party/skia/bench/
DMathBench.cpp427 accum += SkCLZ(fData[i]); in onDraw()
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCFiller.cpp102 int64_t tessellationWork = (int64_t)numVerbs * (32 - SkCLZ(numVerbs)); // N log N. in parseDeviceSpaceFill()