]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibMmx/X64/SetMem.nasm
MdePkg: Replace Opcode with the corresponding instructions.
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibMmx / X64 / SetMem.nasm
index 450113ba847f9772e0f66d2de35be8f20a6eeb51..af584e3d3463e5b18f3b2df5cf2265bc944178c9 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>\r
 ; SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ;\r
 ; Module Name:\r
@@ -32,16 +32,16 @@ ASM_PFX(InternalMemSetMem):
     push    rdi\r
     mov     rax, r8\r
     mov     ah, al\r
-    DB      0x48, 0xf, 0x6e, 0xc0         ; movd mm0, rax\r
+    movq    mm0, rax\r
     mov     r8, rcx\r
     mov     rdi, r8                     ; rdi <- Buffer\r
     mov     rcx, rdx\r
     and     edx, 7\r
     shr     rcx, 3\r
     jz      @SetBytes\r
-    DB      0xf, 0x70, 0xC0, 0x0         ; pshufw mm0, mm0, 0h\r
+    pshufw  mm0, mm0, 0\r
 .0:\r
-    DB      0xf, 0xe7, 0x7              ; movntq [rdi], mm0\r
+    movntq  [rdi], mm0\r
     add     rdi, 8\r
     loop    .0\r
     mfence\r