Lines Matching refs:count
46 const size_t count = (bitCount + kBitsPerElement - 1) / kBitsPerElement;
47 if (count == fElementsCount) {
52 void* bits = realloc(fBits, sizeof(addr_t) * count);
57 if (fElementsCount < count)
58 memset(&fBits[fElementsCount], 0, sizeof(addr_t) * (count - fElementsCount));
61 fElementsCount = count;
74 Bitmap::SetRange(size_t index, size_t count)
77 for (; count > 0; count--)
83 Bitmap::ClearRange(size_t index, size_t count)
86 for (; count > 0; count--)
105 Bitmap::GetLowestContiguousClear(size_t count, size_t fromIndex) const
110 if (count == 0)
119 if ((size_t)index + count - 1 < (size_t)index)
123 while (curCount < count && Get(index + curCount))
126 if (curCount == count)