Test/get the given bit.
| 53 | |
| 54 | // Test/get the given bit. |
| 55 | inline bool BitmapTest(const uint8_t *bitmap, size_t idx) { |
| 56 | return bitmap[idx >> 3] & (1 << (idx & 7)); |
| 57 | } |
| 58 | |
| 59 | // Merge the two bitmaps using bitwise or. Both bitmaps should have at least |
| 60 | // n_bits valid bits. |
no outgoing calls