From c895f9a8c4b7c4d5553d6fde1c95921117fffbc5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 29 Jan 2023 16:46:59 -0500 Subject: Small speedup Optimize the ASCII case here. --- pango/pango-break-table.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pango/pango-break-table.h b/pango/pango-break-table.h index b0ef21bf..981a9898 100644 --- a/pango/pango-break-table.h +++ b/pango/pango-break-table.h @@ -626,7 +626,10 @@ _pango_is_Consonant_Preceding_Repha (gunichar wc) static inline gboolean _pango_is_EastAsianWide (gunichar wc) { - if ((wc >= 0x1100 && wc <= 0x27B0)) + if (wc < 0x1100) + return FALSE; + + if (wc <= 0x27B0) { if ((wc >= 0x1100 && wc <= 0x25FE)) { -- cgit v1.2.1