fix rightshifts on arm