CRC-32: Difference between revisions
m
→{{header|11l}}: `(-)` -> `~`
No edit summary |
Alextretyak (talk | contribs) m (→{{header|11l}}: `(-)` -> `~`) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 33:
F crc32(buf, =crc = UInt32(0))
crc =
L(k) buf
crc = (crc >> 8) (+) :crc_table[(crc [&] F'F) (+) k.code]
R
print(hex(crc32(‘The quick brown fox jumps over the lazy dog’)))</syntaxhighlight>
Line 388:
{{out}}
<pre>0x414fa339</pre>
=={{header|Bait}}==
<syntaxhighlight lang="bait">
import hash.crc32
fun main() {
text := 'The quick brown fox jumps over the lazy dog'
sum := crc32.checksum(text.bytes())
println(sum.hex())
}
</syntaxhighlight>
{{out}}
<pre>
414fa339
</pre>
=={{header|C}}==
Line 2,997 ⟶ 3,013:
{{trans|Go}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang=
class CRC32 {
|