replace div by 8 with 3 bits shift