Join local variable declaration and assignment.

This commit is contained in:
2022-11-13 20:27:31 +00:00
parent 5764c3d844
commit 018c289d69
2 changed files with 3 additions and 7 deletions

View File

@@ -216,12 +216,11 @@ public class Crc16Context : IChecksum
// http://www.intel.com/technology/comms/perfnet/download/CRC_generators.pdf
// http://sourceforge.net/projects/slicing-by-8/
ushort crc;
var currentPos = 0;
const int unroll = 4;
const int bytesAtOnce = 8 * unroll;
crc = previousCrc;
ushort crc = previousCrc;
while(len >= bytesAtOnce)
{
@@ -255,12 +254,11 @@ public class Crc16Context : IChecksum
// http://www.intel.com/technology/comms/perfnet/download/CRC_generators.pdf
// http://sourceforge.net/projects/slicing-by-8/
ushort crc;
var currentPos = 0;
const int unroll = 4;
const int bytesAtOnce = 8 * unroll;
crc = previousCrc;
ushort crc = previousCrc;
while(len >= bytesAtOnce)
{