Returns true if the bitmap contains only zeros.
| 93 | |
| 94 | // Returns true if the bitmap contains only zeros. |
| 95 | inline bool BitmapIsAllZero(const uint8_t *bitmap, size_t offset, size_t bitmap_size) { |
| 96 | DCHECK_LE(offset, bitmap_size); |
| 97 | size_t idx; |
| 98 | return !BitmapFindFirstSet(bitmap, offset, bitmap_size, &idx); |
| 99 | } |
| 100 | |
| 101 | // Returns true if the two bitmaps are equal. |
| 102 | // |