[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #45067] inconsistency & errors in crc.h documentatio
From: |
anonymous |
Subject: |
[avr-libc-dev] [bug #45067] inconsistency & errors in crc.h documentation |
Date: |
Mon, 25 May 2015 19:48:56 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 |
Follow-up Comment #2, bug #45067 (project avr-libc):
"Unfortunately, the bit order of the CRC polynomial appears to
be one of the things where there is never consensus about. :( "
I agree, so just pick one and be consistent about it. My point is that crc.h
mixes both bit orders without even a comment explaining it.
And if you're going to pick one, I think the way pycrc does it is best because
it is explicit as to when the polynomial division is bit-reversed. In cases
where a CRC shows a polynomial in bit-reversed order, that's an implicit
indication that it operates on the bits in reverse order (shift right instead
of shift left).
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?45067>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/