bitmap: New function bitmap_scan() and macro BITMAP_FOR_EACH_1.