xref: /freebsd/contrib/xz/src/liblzma/check/crc32_table.c (revision 911f0260390e18cf85f3dbf2c719b593efdc1e3c)
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