Revert "xz: cleanup CRC32 edits from 2018"

This reverts commit f51cdb56a4.
This commit is contained in:
Ksawlii 2024-11-24 00:23:23 +01:00
parent 9629f5d149
commit 94c89017e5
2 changed files with 5 additions and 1 deletions

View file

@ -29,7 +29,7 @@ STATIC_RW_DATA uint32_t xz_crc32_table[256];
XZ_EXTERN void xz_crc32_init(void)
{
const uint32_t poly = 0xEDB88320;
const uint32_t poly = CRC32_POLY_LE;
uint32_t i;
uint32_t j;

View file

@ -102,6 +102,10 @@
# endif
#endif
#ifndef CRC32_POLY_LE
#define CRC32_POLY_LE 0xedb88320
#endif
/*
* Allocate memory for LZMA2 decoder. xz_dec_lzma2_reset() must be used
* before calling xz_dec_lzma2_run().