]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibSse2/X64/SetMem16.S
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibSse2 / X64 / SetMem16.S
index 3da0efcb869f8f17804467c709bb100c2354d83b..538247ed074803a395d7bc989d8bac3674225c1b 100644 (file)
@@ -3,8 +3,8 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+# This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
 # http://opensource.org/licenses/bsd-license.php\r
 #    IN UINT16 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem16)\r
 ASM_PFX(InternalMemSetMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     r9, rdi\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi\r
-    and     rcx, 15\r
-    mov     rax, r8\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdi, %r9\r
+    xorq    %rcx, %rcx\r
+    subq    %rdi, %rcx\r
+    andq    $15, %rcx\r
+    movq    %r8, %rax\r
     jz      L0\r
-    shr     rcx, 1\r
-    cmp     rcx, rdx\r
-    cmova   rcx, rdx\r
-    sub     rdx, rcx\r
+    shrq    $1, %rcx\r
+    cmpq    %rdx, %rcx\r
+    cmova   %rdx, %rcx\r
+    subq    %rcx, %rdx\r
     rep     stosw\r
 L0:\r
-    mov     rcx, rdx\r
-    and     edx, 7\r
-    shr     rcx, 3\r
+    movq    %rdx, %rcx\r
+    andl    $7, %edx\r
+    shrq    $3, %rcx\r
     jz      L_SetWords\r
-    movd    xmm0, eax\r
-    pshuflw xmm0, xmm0, 0\r
-    movlhps xmm0, xmm0\r
+    movd    %eax, %xmm0\r
+    pshuflw $0, %xmm0, %xmm0\r
+    movlhps %xmm0, %xmm0\r
 L1:\r
-    movntdq [rdi], xmm0\r
-    add     rdi, 16\r
+    movntdq %xmm0, (%rdi)\r
+    addq    $16, %rdi\r
     loop    L1\r
     mfence\r
 L_SetWords:\r
-    mov     ecx, edx\r
+    movl    %edx, %ecx\r
     rep     stosw\r
-    mov     rax, r9\r
-    pop     rdi\r
+    movq    %r9, %rax\r
+    popq    %rdi\r
     ret\r