Set the bit at position 'pos' in a bitmap. */
| 3812 | |
| 3813 | /* Set the bit at position 'pos' in a bitmap. */ |
| 3814 | void bitmapSetBit(unsigned char *bitmap, int pos) { |
| 3815 | off_t byte = pos/8; |
| 3816 | int bit = pos&7; |
| 3817 | bitmap[byte] |= 1<<bit; |
| 3818 | } |
| 3819 | |
| 3820 | /* Clear the bit at position 'pos' in a bitmap. */ |
| 3821 | void bitmapClearBit(unsigned char *bitmap, int pos) { |
no outgoing calls
no test coverage detected