Boost C++ Libraries: Ticket #7098: CRC: Initial values should not be reflected https://svn.boost.org/trac10/ticket/7098 <p> The CRC classes have a parameter '<a class="missing wiki">ReflectIn</a>', which affects whether the message data is reflected. It also causes the initial remainder of the CRC to be reflected, and that's probably incorrect. This has likely remained undetected 'til now because all the included presets use bit-palindromic initial remainders. </p> <p> LVM2 uses a non-palindromic initial remainder, so I've used its code for a test case. You can see that both LVM's calc_crc() and zlib's crc32() don't reflect the initial remainder. It's evident that boost's crc does, and that no obvious change in template parameters yields the same behaviour as LVM and zlib. </p> <p> Tested in both clang++ 3.1 and g++ 4.2. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7098 Trac 1.4.3 Dave Vasilevsky <dave@…> Fri, 06 Jul 2012 10:59:08 GMT attachment set https://svn.boost.org/trac10/ticket/7098 https://svn.boost.org/trac10/ticket/7098 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> <p> Test case </p> Ticket