mirror of
https://github.com/sheumann/hush.git
synced 2024-07-15 15:29:07 +00:00
decompress_unlzma: move function, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
a2d04e0702
commit
507f6ea6d2
@ -65,6 +65,12 @@ static void rc_do_normalize(rc_t *rc)
|
|||||||
rc->range <<= 8;
|
rc->range <<= 8;
|
||||||
rc->code = (rc->code << 8) | *rc->ptr++;
|
rc->code = (rc->code << 8) | *rc->ptr++;
|
||||||
}
|
}
|
||||||
|
static ALWAYS_INLINE void rc_normalize(rc_t *rc)
|
||||||
|
{
|
||||||
|
if (rc->range < (1 << RC_TOP_BITS)) {
|
||||||
|
rc_do_normalize(rc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Called once */
|
/* Called once */
|
||||||
static ALWAYS_INLINE rc_t* rc_init(int fd) /*, int buffer_size) */
|
static ALWAYS_INLINE rc_t* rc_init(int fd) /*, int buffer_size) */
|
||||||
@ -90,13 +96,6 @@ static ALWAYS_INLINE void rc_free(rc_t *rc)
|
|||||||
free(rc);
|
free(rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ALWAYS_INLINE void rc_normalize(rc_t *rc)
|
|
||||||
{
|
|
||||||
if (rc->range < (1 << RC_TOP_BITS)) {
|
|
||||||
rc_do_normalize(rc);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* rc_is_bit_1 is called 9 times */
|
/* rc_is_bit_1 is called 9 times */
|
||||||
static speed_inline int rc_is_bit_1(rc_t *rc, uint16_t *p)
|
static speed_inline int rc_is_bit_1(rc_t *rc, uint16_t *p)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user