18 #include "../../common/tuklib_integer.h"
29 for (
size_t s = 0;
s < 8; ++
s) {
30 for (
size_t b = 0;
b < 256; ++
b) {
33 for (
size_t i = 0;
i < 8; ++
i) {
35 r = (
r >> 1) ^ poly32;
44 #ifdef WORDS_BIGENDIAN
45 for (
size_t s = 0;
s < 8; ++
s)
46 for (
size_t b = 0;
b < 256; ++
b)
57 printf(
"/* This file has been automatically generated by "
58 "crc32_tablegen.c. */\n\n"
59 "const uint32_t lzma_crc32_table[8][256] = {\n\t{");
61 for (
size_t s = 0;
s < 8; ++
s) {
62 for (
size_t b = 0;
b < 256; ++
b) {
69 printf(
",%s", (
b+1) % 4 == 0 ?
"" :
" ");
85 printf(
"/* This file has been automatically generated by "
86 "crc32_tablegen.c. */\n\n"
87 "const uint32_t lzma_lz_hash_table[256] = {");
89 for (
size_t b = 0;
b < 256; ++
b) {
96 printf(
",%s", (
b+1) % 4 == 0 ?
"" :
" ");
static void print_crc32_table(void)
static void init_crc32_table(void)
static void print_lz_table(void)
static uint32_t crc32_table[8][256]
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)