mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 09:34:05 +01:00
[buffer] Minor micro-optimize
This commit is contained in:
1 parent
dc35a0fbcb
commit
a41368bd7a
1 file changed
+3
-3
+3
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user