summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/utf8.h b/utf8.h
index 74e7d48e59..52671ebb9d 100644
--- a/utf8.h
+++ b/utf8.h
@@ -639,13 +639,13 @@ machines) is a valid UTF-8 character.
=cut
*/
-#define isUTF8_CHAR(s, e) (((e) <= (s)) \
+#define isUTF8_CHAR(s, e) (UNLIKELY((e) <= (s)) \
? 0 \
: (UTF8_IS_INVARIANT(*s)) \
? 1 \
- : (((e) - (s)) < UTF8SKIP(s)) \
+ : UNLIKELY(((e) - (s)) < UTF8SKIP(s)) \
? 0 \
- : (IS_UTF8_CHAR_FAST(UTF8SKIP(s))) \
+ : LIKELY(IS_UTF8_CHAR_FAST(UTF8SKIP(s))) \
? is_UTF8_CHAR_utf8_no_length_checks(s) \
: _is_utf8_char_slow(s, e))