#define CLEAR_BIT_MSB(num, bit) ((num) &= (typeof((num)))(~(1 << ((sizeof(num) * 8) - 1 - (bit)))))
.#define CLEAR_BIT_MSB(num, num_type, bit) ((num) &= (num_type)(~(1 << ((sizeof(num) * 8) - 1 - (bit)))))
CLEAR_BIT_MSB(bitmap[byte_offset], uint8_t, bit_offset);