optimize or-shift to multiply