Skip to content

Commit d5c5b9f

Browse files
committed
code layout trick (vtune dsb improvement)
1 parent 5df25a4 commit d5c5b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/json_encoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ zend_result php_json_escape_string(
601601
int mask = php_json_sse2_compute_escape_intersection(_mm_setzero_si128(), input);
602602
#endif
603603
if (mask != 0) {
604-
if (max_shift < sizeof(__m128i)) {
604+
if (UNEXPECTED(max_shift < sizeof(__m128i))) {
605605
int shift = zend_ulong_ntz(mask); /* first offending character */
606606
pos += MIN(max_shift, shift);
607607
len -= MIN(max_shift, shift);

0 commit comments

Comments
 (0)