Remove unneeded saving of rdi in strcpy()
This commit is contained in:
@ -25,8 +25,6 @@ strcpy:
|
|||||||
push rbp
|
push rbp
|
||||||
mov rbp, rsp
|
mov rbp, rsp
|
||||||
|
|
||||||
push rdi
|
|
||||||
sub rsp, 8
|
|
||||||
xor rax, rax
|
xor rax, rax
|
||||||
xor rcx, rcx
|
xor rcx, rcx
|
||||||
.loop:
|
.loop:
|
||||||
@ -40,8 +38,6 @@ strcpy:
|
|||||||
jmp .loop
|
jmp .loop
|
||||||
|
|
||||||
.0f:
|
.0f:
|
||||||
pop rax
|
|
||||||
add rsp, 8
|
|
||||||
cmp rcx, 0
|
cmp rcx, 0
|
||||||
jne .quit
|
jne .quit
|
||||||
xor rax, rax
|
xor rax, rax
|
||||||
|
Reference in New Issue
Block a user