mirror of
https://github.com/boostorg/crc.git
synced 2026-07-21 13:13:28 +00:00
Update crc.hpp
This commit is contained in:
@@ -1670,7 +1670,7 @@ crc_basic<Bits>::get_final_xor_value
|
||||
return final_;
|
||||
}
|
||||
|
||||
/** Returns a whether or not a submitted byte will be \"reflected\" before it is
|
||||
/** Returns whether or not a submitted byte will be \"reflected\" before it is
|
||||
used to update the interim remainder. Only the byte-wise operations
|
||||
#process_byte, #process_block, and #process_bytes are affected.
|
||||
|
||||
@@ -1776,7 +1776,7 @@ crc_basic<Bits>::reset
|
||||
|
||||
\param[in] bit The new input bit.
|
||||
|
||||
\post The interim remainder is updated though a modulo-2 polynomial
|
||||
\post The interim remainder is updated through a modulo-2 polynomial
|
||||
division, where the division steps are altered for unaugmented CRCs.
|
||||
*/
|
||||
template < std::size_t Bits >
|
||||
@@ -1801,7 +1801,7 @@ crc_basic<Bits>::process_bit
|
||||
\param[in] bits The byte containing the new input bits.
|
||||
\param[in] bit_length The number of bits in the byte to be read.
|
||||
|
||||
\post The interim remainder is updated though \a bit_length modulo-2
|
||||
\post The interim remainder is updated through \a bit_length modulo-2
|
||||
polynomial divisions, where the division steps are altered for unaugmented
|
||||
CRCs.
|
||||
*/
|
||||
@@ -1831,7 +1831,7 @@ crc_basic<Bits>::process_bits
|
||||
|
||||
\param[in] byte The new input byte.
|
||||
|
||||
\post The interim remainder is updated though \c CHAR_BIT modulo-2
|
||||
\post The interim remainder is updated through \c CHAR_BIT modulo-2
|
||||
polynomial divisions, where the division steps are altered for unaugmented
|
||||
CRCs.
|
||||
*/
|
||||
@@ -1865,7 +1865,7 @@ crc_basic<Bits>::process_byte
|
||||
\param[in] bytes_end Points to one-byte past the address of the memory
|
||||
block's last byte, or \a bytes_begin if no bytes are to be read.
|
||||
|
||||
\post The interim remainder is updated though <code>CHAR_BIT * (((unsigned
|
||||
\post The interim remainder is updated through <code>CHAR_BIT * (((unsigned
|
||||
char const *) bytes_end) - ((unsigned char const *) bytes_begin))</code>
|
||||
modulo-2 polynomial divisions, where the division steps are altered for
|
||||
unaugmented CRCs.
|
||||
@@ -1901,7 +1901,7 @@ crc_basic<Bits>::process_block
|
||||
\param[in] buffer The address where the memory block begins.
|
||||
\param[in] byte_count The number of bytes in the memory block.
|
||||
|
||||
\post The interim remainder is updated though <code>CHAR_BIT *
|
||||
\post The interim remainder is updated through <code>CHAR_BIT *
|
||||
<var>byte_count</var></code> modulo-2 polynomial divisions, where the
|
||||
division steps are altered for unaugmented CRCs.
|
||||
*/
|
||||
@@ -2171,7 +2171,7 @@ BOOST_CRC_OPTIMAL_NAME::checksum
|
||||
|
||||
\param[in] byte The new input byte.
|
||||
|
||||
\post The interim remainder is updated though \c CHAR_BIT modulo-2
|
||||
\post The interim remainder is updated through \c CHAR_BIT modulo-2
|
||||
polynomial divisions, where the division steps are altered for unaugmented
|
||||
CRCs.
|
||||
|
||||
@@ -2253,7 +2253,7 @@ BOOST_CRC_OPTIMAL_NAME::operator ()
|
||||
|
||||
\note Unaugmented-style CRC runs perform modulo-2 polynomial division in
|
||||
an altered order. The trailing \a Bits number of zero-valued bits needed
|
||||
to extracted an (unprocessed) checksum is virtually moved to near the
|
||||
to extract an (unprocessed) checksum is virtually moved to near the
|
||||
beginning of the message. This is OK since the XOR operation is
|
||||
commutative and associative. It also means that you can get a checksum
|
||||
anytime. Since data is being read byte-wise, a table of pre-computed
|
||||
|
||||
Reference in New Issue
Block a user