Divide positive fixnum `i' by 2 or a power of 2, yielding an integer result.For example, (div2 35 5) => 1.