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