Searched refs:SkCLZ (Results 1 – 20 of 20) sorted by relevance
/external/skqp/src/core/ |
D | SkMathPriv.h | 141 #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()
|
D | SkEdge.cpp | 178 return (32 - SkCLZ(dist)) >> 1; in diff_to_shift()
|
D | SkMipMap.cpp | 507 const int leadingZeros = SkCLZ(static_cast<uint32_t>(largestAxis)); in ComputeLevelCount()
|
D | SkScan_Hairline.cpp | 440 int level = (33 - SkCLZ(d)) >> 1; in compute_quad_level()
|
/external/skia/src/core/ |
D | SkMathPriv.h | 155 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()
|
D | SkEdge.cpp | 178 return (32 - SkCLZ(dist)) >> 1; in diff_to_shift()
|
D | SkMipmap.cpp | 671 const int leadingZeros = SkCLZ(static_cast<uint32_t>(largestAxis)); in ComputeLevelCount()
|
D | SkScan_Hairline.cpp | 449 int level = (33 - SkCLZ(d)) >> 1; in compute_quad_level()
|
/external/skia/tests/ |
D | MathTest.cpp | 24 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()
|
D | PathCoverageTest.cpp | 50 int shift = 30 - SkCLZ(distance); in estimate_pointCount()
|
D | SubsetPath.cpp | 18 int leadingZero = SkCLZ(fSubset); in range()
|
/external/skqp/tests/ |
D | MathTest.cpp | 20 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()
|
D | PathCoverageTest.cpp | 50 int shift = 30 - SkCLZ(distance); in estimate_pointCount()
|
D | SubsetPath.cpp | 17 int leadingZero = SkCLZ(fSubset); in range()
|
/external/skia/src/gpu/ |
D | GrRectanizerPow2.h | 65 int index = 32 - SkCLZ(height - 1); in HeightToRowIndex()
|
D | GrGpu.cpp | 159 32 - SkCLZ(static_cast<uint32_t>(std::max(dimensions.fWidth, dimensions.fHeight))); in createTexture()
|
/external/skqp/src/gpu/ |
D | GrRectanizer_pow2.h | 63 int index = 32 - SkCLZ(height - 1); in HeightToRowIndex()
|
/external/skqp/bench/ |
D | MathBench.cpp | 427 accum += SkCLZ(fData[i]); in onDraw()
|
/external/skia/bench/ |
D | MathBench.cpp | 427 accum += SkCLZ(fData[i]); in onDraw()
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCFiller.cpp | 100 int64_t tessellationWork = (int64_t)numVerbs * (32 - SkCLZ(numVerbs)); // N log N. in parseDeviceSpaceFill()
|