Auto update
This commit is contained in:
parent
d7d02e975a
commit
fb56950391
2204 changed files with 75279 additions and 29725 deletions
|
|
@ -566,7 +566,7 @@ namespace detail
|
|||
remainder ^= ( new_dividend_bits & 1u ) ? high_bit_mask : 0u;
|
||||
|
||||
// perform modulo-2 division
|
||||
bool const quotient = remainder & high_bit_mask;
|
||||
bool const quotient = (remainder & high_bit_mask) != 0;
|
||||
|
||||
remainder <<= 1;
|
||||
remainder ^= quotient ? truncated_divisor : 0u;
|
||||
|
|
@ -681,7 +681,7 @@ namespace detail
|
|||
// Perform modulo-2 division for each new dividend input bit
|
||||
for ( int i = word_length ; i ; --i, new_dividend_bits >>= 1 )
|
||||
{
|
||||
bool const quotient = remainder & high_bit_mask;
|
||||
bool const quotient = (remainder & high_bit_mask) != 0;
|
||||
|
||||
remainder <<= 1;
|
||||
remainder |= new_dividend_bits & 1u;
|
||||
|
|
@ -1773,7 +1773,7 @@ crc_basic<Bits>::process_bits
|
|||
unsigned char const high_bit_mask = 1u << ( CHAR_BIT - 1u );
|
||||
for ( std::size_t i = bit_length ; i > 0u ; --i, bits <<= 1u )
|
||||
{
|
||||
process_bit( static_cast<bool>(bits & high_bit_mask) );
|
||||
process_bit( (bits & high_bit_mask) != 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue