Fix bugs of bit_scan_reverse/forward().