BITMAP_LAST_WORD_MASK
mask_to_set &= BITMAP_LAST_WORD_MASK(size);
mask_to_clear &= BITMAP_LAST_WORD_MASK(size);