From: mdkinney Date: Sat, 6 Oct 2007 21:59:01 +0000 (+0000) Subject: Restore original algorithm and add comments X-Git-Tag: edk2-stable201903~21992 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9b7c438b983edfb0b9682b361f3c3f1967357b78;p=mirror_edk2.git Restore original algorithm and add comments git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4033 6f19259b-4bc3-4df7-8a09-765794883524 --- 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