]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibSse2/X64/SetMem32.S
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibSse2 / X64 / SetMem32.S
index 2ace79ad9691ece5f26a604ca6ad14dad1a6ac1c..cfb780ce4e88b29bd8a3de22b056f79e687395d4 100644 (file)
@@ -1,70 +1,69 @@
-#
-# ConvertAsm.py: Automatically generated from SetMem32.asm
-#
-#------------------------------------------------------------------------------
-#
-# Copyright (c) 2006, Intel Corporation
-# All rights reserved. This program and the accompanying materials
-# are licensed and made available under the terms and conditions of the BSD License
-# which accompanies this distribution.  The full text of the license may be found at
-# http://opensource.org/licenses/bsd-license.php
-#
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-#
-# Module Name:
-#
-#   SetMem32.S
-#
-# Abstract:
-#
-#   SetMem32 function
-#
-# Notes:
-#
-#------------------------------------------------------------------------------
-
-
-#------------------------------------------------------------------------------
-#  VOID *
-#  EFIAPI
-#  InternalMemSetMem32 (
-#    IN VOID   *Buffer,
-#    IN UINTN  Count,
-#    IN UINT32 Value
-#    );
-#------------------------------------------------------------------------------
-.intel_syntax noprefix
-.globl ASM_PFX(InternalMemSetMem32)
-ASM_PFX(InternalMemSetMem32):
-    push    rdi
-    mov     rdi, rcx
-    mov     r9, rdi
-    xor     rcx, rcx
-    sub     rcx, rdi
-    and     rcx, 15
-    mov     rax, r8
-    jz      L0
-    shr     rcx, 2
-    cmp     rcx, rdx
-    cmova   rcx, rdx
-    sub     rdx, rcx
-    rep     stosd
-L0:
-    mov     rcx, rdx
-    and     edx, 3
-    shr     rcx, 2
-    jz      L_SetDwords
-    movd    xmm0, eax
-    pshufd  xmm0, xmm0, 0
-L1:
-    movntdq [rdi], xmm0
-    add     rdi, 16
-    loop    L1
-    mfence
-L_SetDwords:
-    mov     ecx, edx
-    rep     stosd
-    mov     rax, r9
-    pop     rdi
-    ret
+#\r
+# ConvertAsm.py: Automatically generated from SetMem32.asm\r
+#\r
+#------------------------------------------------------------------------------\r
+#\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
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+# Module Name:\r
+#\r
+#   SetMem32.S\r
+#\r
+# Abstract:\r
+#\r
+#   SetMem32 function\r
+#\r
+# Notes:\r
+#\r
+#------------------------------------------------------------------------------\r
+\r
+\r
+#------------------------------------------------------------------------------\r
+#  VOID *\r
+#  EFIAPI\r
+#  InternalMemSetMem32 (\r
+#    IN VOID   *Buffer,\r
+#    IN UINTN  Count,\r
+#    IN UINT32 Value\r
+#    );\r
+#------------------------------------------------------------------------------\r
+ASM_GLOBAL ASM_PFX(InternalMemSetMem32)\r
+ASM_PFX(InternalMemSetMem32):\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
+    shrq    $2, %rcx\r
+    cmpq    %rdx, %rcx\r
+    cmova   %rdx, %rcx\r
+    subq    %rcx, %rdx\r
+    rep     stosl\r
+L0:\r
+    movq    %rdx, %rcx\r
+    andl    $3, %edx\r
+    shrq    $2, %rcx\r
+    jz      L_SetDwords\r
+    movd    %eax, %xmm0\r
+    pshufd  $0, %xmm0, %xmm0\r
+L1:\r
+    movntdq %xmm0, (%rdi)\r
+    addq    $16, %rdi\r
+    loop    L1\r
+    mfence\r
+L_SetDwords:\r
+    movl    %edx, %ecx\r
+    rep     stosl\r
+    movq    %r9, %rax\r
+    popq    %rdi\r
+    ret\r