diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2024-02-12 17:09:10 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2024-02-14 18:31:16 +0200 |
commit | 5938f6de4d8ec9656776cd69e78ddfd6c3ad84e5 (patch) | |
tree | 6d17aaac0027ad59a3466af90de147e0b583c357 | |
parent | liblzma: LZ decoder: Remove a useless unlikely(). (diff) | |
download | xz-5938f6de4d8ec9656776cd69e78ddfd6c3ad84e5.tar.xz |
liblzma: LZ decoder: Add unlikely().
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/lz/lz_decoder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/lz/lz_decoder.h b/src/liblzma/lz/lz_decoder.h index fbbe9a38..cb61b6e2 100644 --- a/src/liblzma/lz/lz_decoder.h +++ b/src/liblzma/lz/lz_decoder.h @@ -206,7 +206,7 @@ dict_put(lzma_dict *dict, uint8_t byte) static inline bool dict_put_safe(lzma_dict *dict, uint8_t byte) { - if (dict->pos == dict->limit) + if (unlikely(dict->pos == dict->limit)) return true; dict_put(dict, byte); |