strcmp: core: use movsx instead dirty code
This commit is contained in:
parent
723a2e901b
commit
5bccb1efc6
@ -17,9 +17,6 @@ loop:
|
|||||||
inc rcx
|
inc rcx
|
||||||
jmp loop
|
jmp loop
|
||||||
out:
|
out:
|
||||||
mov rax, 0
|
sub bl, dl
|
||||||
mov rbx, 0
|
movsx rax, bl
|
||||||
mov bl, BYTE [rsi + rcx]
|
|
||||||
mov al, BYTE [rdi + rcx]
|
|
||||||
sub rax, rbx
|
|
||||||
ret
|
ret
|
Loading…
Reference in New Issue
Block a user