]> mj.ucw.cz Git - libucw.git/blob - ucw/crc-tables.h
io-careful: Do not fail if a system call is interrupted by a signal
[libucw.git] / ucw / crc-tables.h
1 /*
2  *      CRC32 (Castagnoli 1993) -- Tables
3  *
4  *      Based on Michael E. Kounavis and Frank L. Berry: A Systematic Approach
5  *      to Building High Performance Software-based CRC Generators
6  *      (Proceedings of the 10th IEEE Symposium on Computers and Communications 2005)
7  *
8  *      Includes code from http://sourceforge.net/projects/slicing-by-8/,
9  *      which carried the following copyright notice:
10  *
11  *      Copyright (c) 2004-2006 Intel Corporation - All Rights Reserved
12  *
13  *      This software program is licensed subject to the BSD License,
14  *      available at http://www.opensource.org/licenses/bsd-license.html
15  *
16  *      Adapted for LibUCW by Martin Mares <mj@ucw.cz> in 2012.
17  */
18
19 #ifdef CONFIG_UCW_CLEAN_ABI
20 #define crc_tableil8_o32 ucw_crc_tableil8_o32
21 #define crc_tableil8_o40 ucw_crc_tableil8_o40
22 #define crc_tableil8_o48 ucw_crc_tableil8_o48
23 #define crc_tableil8_o56 ucw_crc_tableil8_o56
24 #define crc_tableil8_o64 ucw_crc_tableil8_o64
25 #define crc_tableil8_o72 ucw_crc_tableil8_o72
26 #define crc_tableil8_o80 ucw_crc_tableil8_o80
27 #define crc_tableil8_o88 ucw_crc_tableil8_o88
28 #endif
29
30 extern const u32 crc_tableil8_o32[256];
31 extern const u32 crc_tableil8_o40[256];
32 extern const u32 crc_tableil8_o48[256];
33 extern const u32 crc_tableil8_o56[256];
34 extern const u32 crc_tableil8_o64[256];
35 extern const u32 crc_tableil8_o72[256];
36 extern const u32 crc_tableil8_o80[256];
37 extern const u32 crc_tableil8_o88[256];