liblzma: LZ decoder: Add unlikely().

This commit is contained in:
Lasse Collin 2024-02-12 17:09:10 +02:00
parent 9c252e3ed0
commit 5938f6de4d
1 changed files with 1 additions and 1 deletions

View File

@ -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);