From 9b7c438b983edfb0b9682b361f3c3f1967357b78 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Sat, 6 Oct 2007 21:59:01 +0000 Subject: Restore original algorithm and add comments git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4033 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseMemoryLibRepStr/x64/SetMem.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'MdePkg/Library/BaseMemoryLibRepStr') diff --git a/MdePkg/Library/BaseMemoryLibRepStr/x64/SetMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/x64/SetMem.asm index 2c9b211516..fe1bc70f6b 100644 --- a/MdePkg/Library/BaseMemoryLibRepStr/x64/SetMem.asm +++ b/MdePkg/Library/BaseMemoryLibRepStr/x64/SetMem.asm @@ -33,12 +33,11 @@ ; ) ;------------------------------------------------------------------------------ InternalMemSetMem PROC USES rdi - push rcx ; push Buffer mov rax, r8 ; rax = Value mov rdi, rcx ; rdi = Buffer - mov rcx, rdx ; rcx = Count + xchg rcx, rdx ; rcx = Count, rdx = Buffer rep stosb - pop rax ; rax = Buffer + mov rax, rdx ; rax = Buffer ret InternalMemSetMem ENDP -- cgit v1.2.3