Merge the two bitmaps using bitwise or. Both bitmaps should have at least n_bits valid bits.
| 59 | // Merge the two bitmaps using bitwise or. Both bitmaps should have at least |
| 60 | // n_bits valid bits. |
| 61 | inline void BitmapMergeOr(uint8_t *dst, const uint8_t *src, size_t n_bits) { |
| 62 | size_t n_bytes = BitmapSize(n_bits); |
| 63 | for (size_t i = 0; i < n_bytes; i++) { |
| 64 | *dst++ |= *src++; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // Set bits from offset to (offset + num_bits) to the specified value |
| 69 | void BitmapChangeBits(uint8_t *bitmap, size_t offset, size_t num_bits, bool value); |
nothing calls this directly
no test coverage detected