Skip to content

Commit

Permalink
x86_64: bugfix in memset()
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Oct 16, 2024
1 parent f0cdf96 commit 97e97ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/x86_64/string.asm
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ memset:
mov ax, si ; 32 bits
mov esi, eax
shr rax, 32
mov eax, esi ; full 64 bits
or rax, rsi ; full 64 bits

mov rcx, rdx
shr rcx, 3 ; div 8
Expand Down

0 comments on commit 97e97ae

Please sign in to comment.