Switch the given bit to the specified value.
| 43 | |
| 44 | // Switch the given bit to the specified value. |
| 45 | inline void BitmapChange(uint8_t *bitmap, size_t idx, bool value) { |
| 46 | bitmap[idx >> 3] = (bitmap[idx >> 3] & ~(1 << (idx & 7))) | ((!!value) << (idx & 7)); |
| 47 | } |
| 48 | |
| 49 | // Clear the given bit. |
| 50 | inline void BitmapClear(uint8_t *bitmap, size_t idx) { |
no outgoing calls