Use logical shift instead of math.Pow