Return the number of bytes necessary to store the given number of bits.
| 33 | |
| 34 | // Return the number of bytes necessary to store the given number of bits. |
| 35 | inline size_t BitmapSize(size_t num_bits) { |
| 36 | return (num_bits + 7) / 8; |
| 37 | } |
| 38 | |
| 39 | // Set the given bit. |
| 40 | inline void BitmapSet(uint8_t *bitmap, size_t idx) { |
no outgoing calls