Set the given bit.
| 38 | |
| 39 | // Set the given bit. |
| 40 | inline void BitmapSet(uint8_t *bitmap, size_t idx) { |
| 41 | bitmap[idx >> 3] |= 1 << (idx & 7); |
| 42 | } |
| 43 | |
| 44 | // Switch the given bit to the specified value. |
| 45 | inline void BitmapChange(uint8_t *bitmap, size_t idx, bool value) { |