crc32/README.md
2015-10-23 15:18:11 -07:00

994 B

crc32

It computes crc32s, and what of it?

Update

If portability isn't a concern; as in your compiler can build gnu11 code; I'd recommend you use the "modern" branch. The code is much cleaner and slightly faster.

Usage

crc32 - a 32-bit cyclic rendundancy check calculator

  <files...>        open files as inputs
  -h                display this text
  -s <n>            start cycle with n (default: 0xFFFFFFFF)
  -p <n>            use n as the crc divisor (default: 0x04C11DB7)
  -e                use big endian calculations
  -b                output as binary
  -x                NOT the output
  -r                reverse output's bits

numbers <n> may be entered as hexadecimal or octal with prefixes

Notes

  • Does not pad input.
  • Big endian calculations are somewhat untested.

Smaller Still