1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

liblzma: LZ decoder: Add unlikely().

This commit is contained in:
Lasse Collin 2024-02-12 17:09:10 +02:00
parent 9c252e3ed0
commit 5938f6de4d

View file

@ -206,7 +206,7 @@ dict_put(lzma_dict *dict, uint8_t byte)
static inline bool static inline bool
dict_put_safe(lzma_dict *dict, uint8_t byte) dict_put_safe(lzma_dict *dict, uint8_t byte)
{ {
if (dict->pos == dict->limit) if (unlikely(dict->pos == dict->limit))
return true; return true;
dict_put(dict, byte); dict_put(dict, byte);