ROFL-pipeline
v0.6.0dev
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
rofl
datapath
pipeline
common
crc32cr.h
1
/*
2
* crc32cr.h
3
*
4
* Created on: 11.07.2014
5
* Author: andreas
6
*
7
* This is the reference implementation from RFC 3309.
8
* Please check RFC 3309 for more details and the references mentioned
9
* in the comment below.
10
*/
11
12
#ifndef CRC32CR_H_
13
#define CRC32CR_H_ 1
14
15
#include <inttypes.h>
16
#include <sys/types.h>
17
18
#define CRC32C_POLY 0x1EDC6F41
19
#define CRC32C(c,d) (c=(c>>8)^cpc_crc_c[(c^(d))&0xFF])
20
21
uint32_t generate_crc32c(uint8_t* buf,
size_t
buflen);
22
23
#endif
/* CRC32CR_H_ */
Generated by
1.8.6