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

@@ -63,7 +63,7 @@ public sealed class Crc64Context : IChecksum
if((entry & 1) == 1)
entry = entry >> 1 ^ CRC64_ECMA_POLY;
else
entry = entry >> 1;
entry >>= 1;
}
_table[i] = entry;
@@ -88,7 +88,7 @@ public sealed class Crc64Context : IChecksum
if((entry & 1) == 1)
entry = entry >> 1 ^ polynomial;
else
entry = entry >> 1;
entry >>= 1;
}
_table[i] = entry;
@@ -164,7 +164,7 @@ public sealed class Crc64Context : IChecksum
if((entry & 1) == 1)
entry = entry >> 1 ^ polynomial;
else
entry = entry >> 1;
entry >>= 1;
}
localTable[i] = entry;
@@ -213,7 +213,7 @@ public sealed class Crc64Context : IChecksum
if((entry & 1) == 1)
entry = entry >> 1 ^ polynomial;
else
entry = entry >> 1;
entry >>= 1;
}
localTable[i] = entry;