CRC-32: Difference between revisions
Content deleted Content added
mNo edit summary |
Alextretyak (talk | contribs) m →{{header|11l}}: `(-)` -> `~` |
||
Line 33: | Line 33: | ||
F crc32(buf, =crc = UInt32(0)) |
F crc32(buf, =crc = UInt32(0)) |
||
crc = |
crc = ~crc |
||
L(k) buf |
L(k) buf |
||
crc = (crc >> 8) (+) :crc_table[(crc [&] F'F) (+) k.code] |
crc = (crc >> 8) (+) :crc_table[(crc [&] F'F) (+) k.code] |
||
R |
R ~crc |
||
print(hex(crc32(‘The quick brown fox jumps over the lazy dog’)))</syntaxhighlight> |
print(hex(crc32(‘The quick brown fox jumps over the lazy dog’)))</syntaxhighlight> |