Use shift operation instead of dividing
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>