|
From: | Antonio Diaz Diaz |
Subject: | Re: CRC slicing-by-8 |
Date: | Mon, 14 Mar 2022 15:40:01 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
p.z.l wrote:
Have you got any idea why this: c = crc32[(c ^ buffer[i]) & 0xFF] ^ ( c >> 8 ); /// lzip is faster than this: c = (c >> 8) ^ crc32[(c & 0xFF) ^ buffer[i]]; /// sbrumme crc
May be because of the different ordering of the operations. You may try to transform one of the lines above into the other step by step, and test the speed of the intermediate stages.
[Prev in Thread] | Current Thread | [Next in Thread] |