35 for (
uint32_t j = 0; j < cycles_bits; ++j) {
57 printf(
"/* This file has been automatically generated by "
58 "price_tablegen.c. */\n\n"
59 "#include \"range_encoder.h\"\n\n"
60 "const uint8_t lzma_rc_prices["
61 "RC_PRICE_TABLE_SIZE] = {");
65 for (
size_t i = 0;
i < array_size; ++
i) {
71 if (
i != array_size - 1)
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
Probability price calculation.
#define RC_MOVE_REDUCING_BITS
#define RC_PRICE_TABLE_SIZE
const uint8_t lzma_rc_prices[RC_PRICE_TABLE_SIZE]
Lookup table for the inline functions defined in this file.
#define RC_BIT_PRICE_SHIFT_BITS
static void print_price_table(void)
static uint32_t rc_prices[RC_PRICE_TABLE_SIZE]
static void init_price_table(void)
Common things for range encoder and decoder.
#define RC_BIT_MODEL_TOTAL_BITS
#define RC_BIT_MODEL_TOTAL