From d7941e04df605549f97c9a48469c5c204609610a Mon Sep 17 00:00:00 2001
From: Behdad Esfahbod <behdad@behdad.org>
Date: Fri, 30 Dec 2022 14:47:47 -0700
Subject: [PATCH] [paint-extents] Unlikely

---
 src/hb-paint-extents.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hb-paint-extents.cc b/src/hb-paint-extents.cc
index 1b5261b59..c4ea87f43 100644
--- a/src/hb-paint-extents.cc
+++ b/src/hb-paint-extents.cc
@@ -64,7 +64,7 @@ static void
 add_point (hb_extents_t *extents,
            float x, float y)
 {
-  if (extents->xmax < extents->xmin)
+  if (unlikely (extents->xmax < extents->xmin))
   {
     extents->xmin = extents->xmax = x;
     extents->ymin = extents->ymax = y;