[path-builder] Add a couple of unlikely's

This commit is contained in:
Behdad Esfahbod committed 2023-06-29 10:35:23 -06:00
1 parent f5eead04e6
commit 5703c1c4ea
1 file changed
+2 -2
+2 -2
View File
@@ -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)
{