mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[SimpleGlyph] Remove a conditional from hot path
5% speedup in Roboto-Regular draw benchmark
This commit is contained in:
parent
bb4d37b052
commit
54db2b2ed6
1 changed files with 1 additions and 4 deletions
|
@ -160,10 +160,7 @@ struct SimpleGlyph
|
|||
if (flag & short_flag)
|
||||
{
|
||||
if (unlikely (p + 1 > end)) return false;
|
||||
if (flag & same_flag)
|
||||
v += *p++;
|
||||
else
|
||||
v -= *p++;
|
||||
v += (bool(flag & same_flag) * 2 - 1) * *p++;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue