Set the bit at position 'pos' in a bitmap. */
| 3871 | |
| 3872 | /* Set the bit at position 'pos' in a bitmap. */ |
| 3873 | void bitmapSetBit(unsigned char *bitmap, int pos) { |
| 3874 | off_t byte = pos/8; |
| 3875 | int bit = pos&7; |
| 3876 | bitmap[byte] |= 1<<bit; |
| 3877 | } |
| 3878 | |
| 3879 | /* Clear the bit at position 'pos' in a bitmap. */ |
| 3880 | void bitmapClearBit(unsigned char *bitmap, int pos) { |
no outgoing calls
no test coverage detected