From 991dbdf18c2c1b46c62e6127e8645490b8662275 Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Mon, 28 Feb 2005 17:34:52 +0000 Subject: change division to right-shift svn-id: r16962 --- sky/rnc_deco.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sky') diff --git a/sky/rnc_deco.cpp b/sky/rnc_deco.cpp index 24db371b1b..43cd82939d 100644 --- a/sky/rnc_deco.cpp +++ b/sky/rnc_deco.cpp @@ -50,10 +50,10 @@ void RncDecoder::initCrc() { tmp1 = tmp2; for (cnt = 8; cnt > 0; cnt--) { if (tmp1 % 2) { - tmp1 /= 2; + tmp1 >>= 1; tmp1 ^= 0x0a001; } else - tmp1 /= 2; + tmp1 >>= 1; } _crcTable[tmp2] = tmp1; } -- cgit v1.2.3