Replace redundant TD_F_NOIO flag with td->io_ops_init
[fio.git] / crc / crc7.h
CommitLineData
1e154bdb
JA
1#ifndef CRC7_H
2#define CRC7_H
3
4extern const unsigned char crc7_syndrome_table[256];
5
6static inline unsigned char crc7_byte(unsigned char crc, unsigned char data)
7{
8 return crc7_syndrome_table[(crc << 1) ^ data];
9}
10
25dfa848 11extern unsigned char fio_crc7(const unsigned char *buffer, unsigned int len);
1e154bdb
JA
12
13#endif