LibC: Add SSE2 non-temporal memset and memcpy

Also cleanup other assembly by using local labels to emit them from the
assembled program.
This commit is contained in:
2026-04-11 00:45:52 +03:00
parent d11160d2f7
commit 2a9dad2dd8
5 changed files with 254 additions and 44 deletions

View File

@@ -1,3 +1,4 @@
.align 16
.global memcpy
memcpy:
xchgl 4(%esp), %edi
@@ -10,6 +11,7 @@ memcpy:
movl %edx, %eax
ret
.align 16
.global memmove
memmove:
xchgl 4(%esp), %edi
@@ -32,6 +34,7 @@ memmove:
cld
jmp .memmove_done
.align 16
.global memset
memset:
xchgl 4(%esp), %edi