feat(strlen): improve memory management
- Now using the xor to initialise the return value (faster / memory better)
This commit is contained in:
parent
99bf4bb2d5
commit
ac339ec277
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ section .text
|
|||
global ft_strlen
|
||||
|
||||
ft_strlen:
|
||||
mov rax, 0
|
||||
xor rax, rax
|
||||
cmp rdi, 0
|
||||
je .exit
|
||||
jmp .loop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue