xref: /freebsd/contrib/xz/src/liblzma/check/crc32_table.c (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file       crc32_table.c
4 /// \brief      Precalculated CRC32 table with correct endianness
5 //
6 //  Author:     Lasse Collin
7 //
8 //  This file has been put into the public domain.
9 //  You can do whatever you want with this file.
10 //
11 ///////////////////////////////////////////////////////////////////////////////
12 
13 #include "common.h"
14 
15 // Having the declaration here silences clang -Wmissing-variable-declarations.
16 extern const uint32_t lzma_crc32_table[8][256];
17 
18 #ifdef WORDS_BIGENDIAN
19 #	include "crc32_table_be.h"
20 #else
21 #	include "crc32_table_le.h"
22 #endif
23