From 631f060bb7fb457ff8720a690f4bdd378328cb2d Mon Sep 17 00:00:00 2001 From: mdkinney Date: Sat, 6 Oct 2007 23:23:49 +0000 Subject: Add BaseMemoryLib optimized for DXE git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4036 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/BaseMemoryLibOptDxe/x64/SetMem32.asm | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 MdePkg/Library/BaseMemoryLibOptDxe/x64/SetMem32.asm (limited to 'MdePkg/Library/BaseMemoryLibOptDxe/x64/SetMem32.asm') diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/x64/SetMem32.asm b/MdePkg/Library/BaseMemoryLibOptDxe/x64/SetMem32.asm new file mode 100644 index 0000000000..c81c81f901 --- /dev/null +++ b/MdePkg/Library/BaseMemoryLibOptDxe/x64/SetMem32.asm @@ -0,0 +1,45 @@ +;------------------------------------------------------------------------------ +; +; 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.Asm +; +; Abstract: +; +; SetMem32 function +; +; Notes: +; +;------------------------------------------------------------------------------ + + .code + +;------------------------------------------------------------------------------ +; VOID * +; EFIAPI +; InternalMemSetMem32 ( +; IN VOID *Buffer, +; IN UINTN Count, +; IN UINT32 Value +; ); +;------------------------------------------------------------------------------ +InternalMemSetMem32 PROC USES rdi + push rcx + mov rdi, rcx + mov rax, r8 + xchg rcx, rdx + rep stosd + pop rax + ret +InternalMemSetMem32 ENDP + + END -- cgit v1.2.3