i / 2 -> i>>1 i / 4 -> i>>2Multiplying by 2 can be replaced by a left shift
i * 2 -> i<<1 i * 4 -> i<<2Checking for odd or even
i % 2 -> i & 0x01
i / 2 -> i>>1 i / 4 -> i>>2Multiplying by 2 can be replaced by a left shift
i * 2 -> i<<1 i * 4 -> i<<2Checking for odd or even
i % 2 -> i & 0x01