crc32_table.c 648 B

12345678910111213141516171819202122
  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. #include "common.h"
  13. // Having the declaration here silences clang -Wmissing-variable-declarations.
  14. extern const uint32_t lzma_crc32_table[8][256];
  15. #ifdef WORDS_BIGENDIAN
  16. # error #include "crc32_table_be.h"
  17. #else
  18. # include "crc32_table_le.h"
  19. #endif