decompress_unlzma: 10% speedup in "small" code
text data bss dec hex filename 1796 0 0 1796 704 decompress_unlzma.o 1801 0 0 1801 709 decompress_unlzma.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c09fd27c0a
commit
a2d04e0702
@ -114,7 +114,7 @@ static speed_inline int rc_is_bit_1(rc_t *rc, uint16_t *p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Called 4 times in unlzma loop */
|
/* Called 4 times in unlzma loop */
|
||||||
static speed_inline int rc_get_bit(rc_t *rc, uint16_t *p, int *symbol)
|
static ALWAYS_INLINE int rc_get_bit(rc_t *rc, uint16_t *p, int *symbol)
|
||||||
{
|
{
|
||||||
int ret = rc_is_bit_1(rc, p);
|
int ret = rc_is_bit_1(rc, p);
|
||||||
*symbol = *symbol * 2 + ret;
|
*symbol = *symbol * 2 + ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user