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

38 lines
994 B
Markdown

crc32
=====
It computes [crc32s,][crc] and what of it?
[crc]: http://en.wikipedia.org/wiki/Cyclic_redundancy_check
Update
------
If portability isn't a concern; as in your compiler can build gnu11 code;
I'd recommend you use the ["modern"](https://github.com/notwa/crc32/tree/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](https://gist.github.com/notwa/5689243)