Division by 2 was replaced with bit shifting to left.

Faster calculation.