Use compound assignment.

This commit is contained in:
2024-11-12 06:19:25 +00:00
parent 11bc15f1dd
commit 419ce11128
2 changed files with 8 additions and 8 deletions

View File

@@ -64,7 +64,7 @@ public sealed class Crc32Context : IChecksum
if((entry & 1) == 1)
entry = entry >> 1 ^ CRC32_ISO_POLY;
else
entry = entry >> 1;
entry >>= 1;
}
_table[i] = entry;
@@ -88,7 +88,7 @@ public sealed class Crc32Context : IChecksum
if((entry & 1) == 1)
entry = entry >> 1 ^ polynomial;
else
entry = entry >> 1;
entry >>= 1;
}
_table[i] = entry;
@@ -162,7 +162,7 @@ public sealed class Crc32Context : IChecksum
if((entry & 1) == 1)
entry = entry >> 1 ^ polynomial;
else
entry = entry >> 1;
entry >>= 1;
}
localTable[i] = entry;
@@ -211,7 +211,7 @@ public sealed class Crc32Context : IChecksum
if((entry & 1) == 1)
entry = entry >> 1 ^ polynomial;
else
entry = entry >> 1;
entry >>= 1;
}
localTable[i] = entry;