]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibSse2/x64/SetMem64.asm
1. Updated function headers for all assembly function
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibSse2 / x64 / SetMem64.asm
index ef94c562b5d017f053cd46e5676c8de59d835651..a26b9412d477df42f7c8f9a23ffb0d8fcd0f7998 100644 (file)
 ;    )\r
 ;------------------------------------------------------------------------------\r
 InternalMemSetMem64 PROC\r
-    mov     rax, rcx\r
+    mov     rax, rcx                    ; rax <- Buffer\r
+    xchg    rcx, rdx                    ; rcx <- Count & rdx <- Buffer\r
     test    dl, 8\r
-    xchg    rcx, rdx\r
+    movd    xmm0, r8\r
     jz      @F\r
     mov     [rdx], r8\r
     add     rdx, 8\r
@@ -42,7 +43,6 @@ InternalMemSetMem64 PROC
 @@:\r
     shr     rcx, 1\r
     jz      @SetQwords\r
-    movd    xmm0, r8\r
     movlhps xmm0, xmm0\r
 @@:\r
     movntdq [rdx], xmm0\r