mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-15 01:18:13 +00:00
[buffer] Minor micro-optimize
This commit is contained in:
parent
dc35a0fbcb
commit
a41368bd7a
1 changed files with 3 additions and 3 deletions
|
@ -499,12 +499,12 @@ hb_buffer_t::set_masks (hb_mask_t value,
|
|||
unsigned int cluster_start,
|
||||
unsigned int cluster_end)
|
||||
{
|
||||
hb_mask_t not_mask = ~mask;
|
||||
value &= mask;
|
||||
|
||||
if (!mask)
|
||||
return;
|
||||
|
||||
hb_mask_t not_mask = ~mask;
|
||||
value &= mask;
|
||||
|
||||
unsigned int count = len;
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
if (cluster_start <= info[i].cluster && info[i].cluster < cluster_end)
|
||||
|
|
Loading…
Add table
Reference in a new issue