Lines Matching refs:Chunk
25 , fChunks((Chunk*)sk_calloc_throw(NumChunksFor(fSize) * sizeof(Chunk))) in SkBitSet()
49 Chunk* chunks = fChunks.get(); in set()
51 std::memset(chunks, 0xFF, sizeof(Chunk) * numChunks); in set()
62 Chunk* chunks = fChunks.get(); in reset()
64 std::memset(chunks, 0, sizeof(Chunk) * numChunks); in reset()
79 const Chunk* chunks = fChunks.get(); in forEachSetIndex()
82 if (Chunk chunk = chunks[i]) { // There are set bits in forEachSetIndex()
97 const Chunk* chunks = fChunks.get(); in findFirst()
100 if (Chunk chunk = chunks[i]) { // There are set bits in findFirst()
111 const Chunk* chunks = fChunks.get(); in findFirstUnset()
114 if (Chunk chunk = ~chunks[i]) { // if there are unset bits ... in findFirstUnset()
129 using Chunk = uint32_t; variable
130 static_assert(std::numeric_limits<Chunk>::radix == 2);
131 inline static constexpr size_t kChunkBits = std::numeric_limits<Chunk>::digits;
132 static_assert(kChunkBits == sizeof(Chunk)*CHAR_BIT, "SkBitSet must use every bit in a Chunk");
133 std::unique_ptr<Chunk, SkFunctionWrapper<void(void*), sk_free>> fChunks;
135 Chunk* chunkFor(size_t index) const { in chunkFor()
139 static constexpr Chunk ChunkMaskFor(size_t index) { in ChunkMaskFor()
140 return (Chunk)1 << (index & (kChunkBits-1)); in ChunkMaskFor()