mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Another Flake optimization
This commit is contained in:
@@ -17,8 +17,10 @@ namespace CUETools.Codecs
|
||||
public static unsafe ushort ComputeChecksum(ushort crc, byte* bytes, int count)
|
||||
{
|
||||
fixed (ushort* t = table)
|
||||
for (int i = count; i > 0; i--)
|
||||
crc = (ushort)((crc << 8) ^ t[(crc >> 8) ^ *(bytes++)]);
|
||||
for (int i = count; i > 0; i--)
|
||||
{
|
||||
crc = (ushort)((crc << 8) ^ t[(crc >> 8) ^ *(bytes++)]);
|
||||
}
|
||||
return crc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user