mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[morx] Add an unlikely
This commit is contained in:
1 parent
3aa1868b23
commit
8dcd621739
1 file changed
+1
-1
@@ -487,7 +487,7 @@ struct LigatureSubtable
|
||||
if (entry.flags & LigatureEntryT::SetComponent)
|
||||
{
|
||||
/* Never mark same index twice, in case DontAdvance was used... */
|
||||
if (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffer->out_len)
|
||||
if (unlikely (match_length && match_positions[(match_length - 1u) % ARRAY_LENGTH (match_positions)] == buffer->out_len))
|
||||
match_length--;
|
||||
|
||||
match_positions[match_length++ % ARRAY_LENGTH (match_positions)] = buffer->out_len;
|
||||
|
||||
Reference in new issue
Block a user