Brian Silverman | 1b6fbd0 | 2013-12-12 18:08:47 -0800 | [diff] [blame^] | 1 | #ifndef CAPE_CRC_H_ |
2 | #define CAPE_CRC_H_ | ||||
3 | |||||
4 | #include <stdint.h> | ||||
5 | #include <sys/types.h> | ||||
6 | |||||
7 | void crc_init(void); | ||||
8 | |||||
9 | // The second argument is the number of words to checksum, NOT the number of | ||||
10 | // bytes. | ||||
11 | uint32_t crc_calculate(uint32_t *restrict data, size_t words); | ||||
12 | |||||
13 | #endif // CAPE_CRC_H_ |