mirror of https://git.tukaani.org/xz.git
liblzma: Omit an unneeded array from the x86 filter
Fixes:6aa2a6deeb
(cherry picked from commitde06b9f0c0
)
This commit is contained in:
parent
79e329b771
commit
34be4e6aa6
|
@ -26,9 +26,6 @@ static size_t
|
||||||
x86_code(void *simple_ptr, uint32_t now_pos, bool is_encoder,
|
x86_code(void *simple_ptr, uint32_t now_pos, bool is_encoder,
|
||||||
uint8_t *buffer, size_t size)
|
uint8_t *buffer, size_t size)
|
||||||
{
|
{
|
||||||
static const bool MASK_TO_ALLOWED_STATUS[5]
|
|
||||||
= { true, true, true, false, true };
|
|
||||||
|
|
||||||
static const uint32_t MASK_TO_BIT_NUMBER[5] = { 0, 1, 2, 2, 3 };
|
static const uint32_t MASK_TO_BIT_NUMBER[5] = { 0, 1, 2, 2, 3 };
|
||||||
|
|
||||||
lzma_simple_x86 *simple = simple_ptr;
|
lzma_simple_x86 *simple = simple_ptr;
|
||||||
|
@ -67,7 +64,7 @@ x86_code(void *simple_ptr, uint32_t now_pos, bool is_encoder,
|
||||||
b = buffer[buffer_pos + 4];
|
b = buffer[buffer_pos + 4];
|
||||||
|
|
||||||
if (Test86MSByte(b) && (prev_mask >> 1) <= 4
|
if (Test86MSByte(b) && (prev_mask >> 1) <= 4
|
||||||
&& MASK_TO_ALLOWED_STATUS[(prev_mask >> 1)]) {
|
&& (prev_mask >> 1) != 3) {
|
||||||
|
|
||||||
uint32_t src = ((uint32_t)(b) << 24)
|
uint32_t src = ((uint32_t)(b) << 24)
|
||||||
| ((uint32_t)(buffer[buffer_pos + 3]) << 16)
|
| ((uint32_t)(buffer[buffer_pos + 3]) << 16)
|
||||||
|
|
Loading…
Reference in New Issue