mirror of
https://github.com/sheumann/hush.git
synced 2025-01-04 22:34:37 +00:00
unlzma: save a few more bytes, and maybe even a bit faster now
This commit is contained in:
parent
c3fff877e1
commit
444639cc21
@ -306,13 +306,9 @@ unpack_lzma_stream(int src_fd, int dst_fd)
|
|||||||
match_byte <<= 1;
|
match_byte <<= 1;
|
||||||
bit = match_byte & 0x100;
|
bit = match_byte & 0x100;
|
||||||
prob_lit = prob + 0x100 + bit + mi;
|
prob_lit = prob + 0x100 + bit + mi;
|
||||||
if (rc_get_bit(rc, prob_lit, &mi)) {
|
bit ^= (rc_get_bit(rc, prob_lit, &mi) << 8); /* 0x100 or 0 */
|
||||||
if (!bit)
|
|
||||||
break;
|
|
||||||
} else {
|
|
||||||
if (bit)
|
if (bit)
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
} while (mi < 0x100);
|
} while (mi < 0x100);
|
||||||
}
|
}
|
||||||
while (mi < 0x100) {
|
while (mi < 0x100) {
|
||||||
|
Loading…
Reference in New Issue
Block a user