Home
last modified time | relevance | path

Searched refs:kLogBitsPerEl (Results 1 – 2 of 2) sorted by relevance

/frameworks/minikin/libs/minikin/
DSparseBitSet.cpp59 uint32_t bitmapsCount = nPages << (kLogValuesPerPage - kLogBitsPerEl); in initFromRanges()
78 data->mZeroPageIndex = (currentPage++) << (kLogValuesPerPage - kLogBitsPerEl); in initFromRanges()
84 indices[startPage] = (currentPage++) << (kLogValuesPerPage - kLogBitsPerEl); in initFromRanges()
87 size_t index = ((currentPage - 1) << (kLogValuesPerPage - kLogBitsPerEl)) + in initFromRanges()
88 ((start & kPageMask) >> kLogBitsPerEl); in initFromRanges()
89 size_t nElements = (end - (start & ~kElMask) + kElMask) >> kLogBitsPerEl; in initFromRanges()
101 indices[j] = (currentPage++) << (kLogValuesPerPage - kLogBitsPerEl); in initFromRanges()
140 uint32_t offset = (fromIndex & kPageMask) >> kLogBitsPerEl; in nextSetBit()
145 for (uint32_t j = offset + 1; j < (1 << (kLogValuesPerPage - kLogBitsPerEl)); j++) { in nextSetBit()
148 return (fromIndex & ~kPageMask) + (j << kLogBitsPerEl) + CountLeadingZeros(e); in nextSetBit()
[all …]
/frameworks/minikin/include/minikin/
DSparseBitSet.h59 return (bitmap[index >> kLogBitsPerEl] & (kElFirst >> (index & kElMask))) != 0; in get()
81 static const int kLogBitsPerEl = kLogBytesPerEl + 3; variable
82 static const int kElMask = (1 << kLogBitsPerEl) - 1;