]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: LZMA decoder: Get rid of next_state[].
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 12 Feb 2024 15:09:10 +0000 (17:09 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 14 Feb 2024 16:31:16 +0000 (18:31 +0200)
commiteb518446e578acf079abae5f1ce28db7b6e59bc1
treed601fa14937bfc9d79b62a2c3c25e7b5579dbb52
parente0c0ee475c0800c08291ae45e0d66aa00d5ce604
liblzma: LZMA decoder: Get rid of next_state[].

It's not completely obvious if this is better in the decoder.
It should be good if compiler can avoid creating a branch
(like using CMOV on x86).

This also makes lzma_encoder.c use the new macros.
src/liblzma/lzma/lzma_common.h
src/liblzma/lzma/lzma_decoder.c
src/liblzma/lzma/lzma_encoder.c