diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-01-29 16:46:59 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-01-30 23:44:34 -0500 |
commit | c895f9a8c4b7c4d5553d6fde1c95921117fffbc5 (patch) | |
tree | 6dbf158ea77e0311be9022dcc5741e8af1a27bcb /pango | |
parent | 5b4f4797dad4d01da09a49aecd32dd894fb91669 (diff) | |
download | pango-c895f9a8c4b7c4d5553d6fde1c95921117fffbc5.tar.gz |
Small speedupmisc-opt
Optimize the ASCII case here.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-break-table.h | 5 |
1 files changed, 4 insertions, 1 deletions
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)) { |