Please substitute operating like `* 2` or `/ 2` with bit-wise operation.