Use unsigned comparison instructions

This commit is contained in:
Dmitry Stogov 2017-12-05 02:41:12 +03:00
parent 8305a73483
commit c019c131e8

View file

@ -322,12 +322,12 @@ ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_str
"jne ll1%=\n\t"
"addl $0x4, %1\n\t"
"subl $0x4, %3\n\t"
"jg ll0%=\n\t"
"ja ll0%=\n\t"
"movl $0x1, %0\n\t"
"jmp ll3%=\n\t"
"ll1%=:\n\t"
"cmpl $0x4,%3\n\t"
"jl ll2%=\n\t"
"jb ll2%=\n\t"
"xorl %0, %0\n\t"
"jmp ll3%=\n\t"
"ll2%=:\n\t"
@ -357,12 +357,12 @@ ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_str
"jne ll1%=\n\t"
"addq $0x8, %1\n\t"
"subq $0x8, %3\n\t"
"jg ll0%=\n\t"
"ja ll0%=\n\t"
"movq $0x1, %0\n\t"
"jmp ll3%=\n\t"
"ll1%=:\n\t"
"cmpq $0x8,%3\n\t"
"jl ll2%=\n\t"
"jb ll2%=\n\t"
"xorq %0, %0\n\t"
"jmp ll3%=\n\t"
"ll2%=:\n\t"