summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-02-11 20:57:36 -0700
committerKarl Williamson <khw@cpan.org>2017-02-11 21:11:13 -0700
commitd34818305fc99020f8962e6d266a233f2f2bbe10 (patch)
treee4f818399a89290d60584da65655a8d7bc9738a1 /utf8.h
parent8b78e93627afc5201875e37a37a7b27874b874c5 (diff)
downloadperl-d34818305fc99020f8962e6d266a233f2f2bbe10.tar.gz
utf8.h: Add branch prediction
use bytes; is unlikely to be the case.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index 0fbe4b79d0..4f8ced3903 100644
--- a/utf8.h
+++ b/utf8.h
@@ -707,7 +707,7 @@ with a ptr argument.
/* A Unicode character can fold to up to 3 characters */
#define UTF8_MAX_FOLD_CHAR_EXPAND 3
-#define IN_BYTES (CopHINTS_get(PL_curcop) & HINT_BYTES)
+#define IN_BYTES UNLIKELY(CopHINTS_get(PL_curcop) & HINT_BYTES)
/*