]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/CompilerStub/X64/memsetRep8.asm
EdkCompatibilityPkg: Remove EdkCompatibilityPkg
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / CompilerStub / X64 / memsetRep8.asm
diff --git a/EdkCompatibilityPkg/Foundation/Library/CompilerStub/X64/memsetRep8.asm b/EdkCompatibilityPkg/Foundation/Library/CompilerStub/X64/memsetRep8.asm
deleted file mode 100644 (file)
index 0c52034..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2007, 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
-;   memsetRep8.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; memset (\r
-;   OUT     VOID                      *Buffer,\r
-;   IN      UINT8                     Value,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-memset   PROC    USES    rdi rbx\r
-    cmp     r8, 0                      ; if Size == 0, do nothing\r
-    mov     r9,  rcx\r
-    je      @SetDone\r
-    mov     rax, rdx\r
-    mov     bl,  al\r
-    mov     bh,  bl\r
-    mov     ax,  bx\r
-    shl     rax, 10h\r
-    mov     ax,  bx\r
-    mov     ebx, eax\r
-    shl     rax, 20h\r
-    mov     eax, ebx\r
-    mov     rdi, rcx\r
-    mov     rcx, r8\r
-    shr     rcx, 3\r
-    rep     stosq\r
-    mov     rcx, rdx\r
-    and     rcx, 7\r
-    rep     stosb\r
-@SetDone:\r
-    mov     rax, r9\r
-    ret\r
-memset   ENDP\r
-\r
-    END\r
-\r