mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-09-20 21:14:41 -04:00
Simplify excessively idiomatic C-ism.
This commit is contained in:
parent
bd33e652ea
commit
a2df8ea599
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ public:
|
||||||
*/
|
*/
|
||||||
T remainder = crc_in;
|
T remainder = crc_in;
|
||||||
remainder ^= data << (width() - 8);
|
remainder ^= data << (width() - 8);
|
||||||
for(size_t bit=8; bit>0; --bit) {
|
for(size_t bit=0; bit<8; bit++) {
|
||||||
if( remainder & top_bit() ) {
|
if( remainder & top_bit() ) {
|
||||||
remainder = (remainder << 1) ^ polynomial;
|
remainder = (remainder << 1) ^ polynomial;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue