feat(strlen): improve memory management

- Now using the xor to initialise the return value (faster / memory
better)
This commit is contained in:
Raphael 2025-12-08 15:13:11 +01:00
parent 99bf4bb2d5
commit ac339ec277
No known key found for this signature in database

View file

@ -4,7 +4,7 @@ section .text
global ft_strlen
ft_strlen:
mov rax, 0
xor rax, rax
cmp rdi, 0
je .exit
jmp .loop