Skip to content

Commit 88c1387

Browse files
committed
utf8n_to_uvchr_msgs: Add branch prediction
Most calls to this function will have it succeed
1 parent d4e2765 commit 88c1387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3042,7 +3042,7 @@ Perl_utf8n_to_uvchr_msgs(const U8 *s,
30423042
uv = UTF8_ACCUMULATE(uv, *s);
30433043
}
30443044

3045-
if (state == 0) {
3045+
if (LIKELY(state == 0)) {
30463046
#ifdef EBCDIC
30473047
uv = UNI_TO_NATIVE(uv);
30483048
#endif

0 commit comments

Comments
 (0)