17 #include "../../common/tuklib_integer.h"
28 for (
size_t s = 0;
s < 4; ++
s) {
29 for (
size_t b = 0;
b < 256; ++
b) {
32 for (
size_t i = 0;
i < 8; ++
i) {
34 r = (
r >> 1) ^ poly64;
43 #ifdef WORDS_BIGENDIAN
44 for (
size_t s = 0;
s < 4; ++
s)
45 for (
size_t b = 0;
b < 256; ++
b)
56 printf(
"/* This file has been automatically generated by "
57 "crc64_tablegen.c. */\n\n"
58 "const uint64_t lzma_crc64_table[4][256] = {\n\t{");
60 for (
size_t s = 0;
s < 4; ++
s) {
61 for (
size_t b = 0;
b < 256; ++
b) {
69 printf(
",%s", (
b+1) % 2 == 0 ?
"" :
" ");
static void print_crc64_table(void)
static uint64_t crc64_table[4][256]
void init_crc64_table(void)
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)