Files
erofs-linux/include/linux/crc4.h
T
Jeremy Kerr 0cbaa44841 lib: Add crc4 module
Add a little helper for crc4 calculations. This works 4-bits-at-a-time,
using a simple table approach.

We will need this in the FSI core code, as well as any master
implementations that need to calculate CRCs in software.

Signed-off-by: Jeremy Kerr <[email protected]>
Signed-off-by: Chris Bostic <[email protected]>
Signed-off-by: Joel Stanley <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2017-06-09 11:52:07 +02:00

9 lines
153 B
C

#ifndef _LINUX_CRC4_H
#define _LINUX_CRC4_H
#include <linux/types.h>
extern uint8_t crc4(uint8_t c, uint64_t x, int bits);
#endif /* _LINUX_CRC4_H */