mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 10:04:24 +01:00
[path-builder] Add a couple of unlikely's
This commit is contained in:
1 parent
f5eead04e6
commit
5703c1c4ea
1 file changed
+2
-2
@@ -47,7 +47,7 @@ struct path_builder_t
|
||||
bool is_cubic = !is_on_curve && (point.flag & glyf_impl::SimpleGlyph::FLAG_CUBIC);
|
||||
#endif
|
||||
optional_point_t p (font->em_fscalef_x (point.x), font->em_fscalef_y (point.y));
|
||||
if (!first_oncurve)
|
||||
if (unlikely (!first_oncurve))
|
||||
{
|
||||
if (is_on_curve)
|
||||
{
|
||||
@@ -124,7 +124,7 @@ struct path_builder_t
|
||||
}
|
||||
}
|
||||
|
||||
if (point.is_end_point)
|
||||
if (unlikely (point.is_end_point))
|
||||
{
|
||||
if (first_offcurve && last_offcurve)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user