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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user