Remove unneeded saving of rdi in strcpy()

This commit is contained in:
2025-06-23 15:30:39 +02:00
parent 26c150cec0
commit e92afdb199

View File

@ -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