Rizin
unix-like reverse engineering framework and cli tools
|
Probability price calculation. More...
Go to the source code of this file.
Macros | |
#define | RC_MOVE_REDUCING_BITS 4 |
#define | RC_BIT_PRICE_SHIFT_BITS 4 |
#define | RC_PRICE_TABLE_SIZE (RC_BIT_MODEL_TOTAL >> RC_MOVE_REDUCING_BITS) |
#define | RC_INFINITY_PRICE (UINT32_C(1) << 30) |
Functions | |
static uint32_t | rc_bit_price (const probability prob, const uint32_t bit) |
static uint32_t | rc_bit_0_price (const probability prob) |
static uint32_t | rc_bit_1_price (const probability prob) |
static uint32_t | rc_bittree_price (const probability *const probs, const uint32_t bit_levels, uint32_t symbol) |
static uint32_t | rc_bittree_reverse_price (const probability *const probs, uint32_t bit_levels, uint32_t symbol) |
static uint32_t | rc_direct_price (const uint32_t bits) |
Variables | |
const uint8_t | lzma_rc_prices [RC_PRICE_TABLE_SIZE] |
Lookup table for the inline functions defined in this file. More... | |
Probability price calculation.
Definition in file price.h.
#define RC_PRICE_TABLE_SIZE (RC_BIT_MODEL_TOTAL >> RC_MOVE_REDUCING_BITS) |
|
inlinestatic |
Definition at line 37 of file price.h.
References lzma_rc_prices, and RC_MOVE_REDUCING_BITS.
Referenced by get_pure_rep_price(), get_short_rep_price(), helper1(), helper2(), and length_update_prices().
|
inlinestatic |
Definition at line 44 of file price.h.
References lzma_rc_prices, RC_BIT_MODEL_TOTAL, and RC_MOVE_REDUCING_BITS.
Referenced by get_pure_rep_price(), helper1(), helper2(), and length_update_prices().
|
inlinestatic |
Definition at line 29 of file price.h.
References bit, lzma_rc_prices, RC_BIT_MODEL_TOTAL, RC_MOVE_REDUCING_BITS, and UINT32_C.
Referenced by get_literal_price(), get_pure_rep_price(), rc_bittree_price(), and rc_bittree_reverse_price().
|
inlinestatic |
Definition at line 52 of file price.h.
References bit, rc_bit_price(), and UINT32_C.
Referenced by fill_dist_prices(), get_literal_price(), and length_update_prices().
|
inlinestatic |
Definition at line 69 of file price.h.
References bit, and rc_bit_price().
Referenced by fill_align_prices(), and fill_dist_prices().
Definition at line 87 of file price.h.
References bits(), and RC_BIT_PRICE_SHIFT_BITS.
Referenced by fill_dist_prices().
|
extern |
Lookup table for the inline functions defined in this file.
Definition at line 5 of file price_table.c.
Referenced by print_price_table(), rc_bit_0_price(), rc_bit_1_price(), and rc_bit_price().