From 6f890d5b408233e5a305163a3f1d634a8b5d5744 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Wed, 19 Nov 2008 15:22:53 +0000 Subject: Detab git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6639 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S | 4 ++-- MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm | 4 ++-- MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'MdePkg/Library/BaseMemoryLibOptDxe') diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S index 00c354032f..6cb3a34210 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S @@ -48,10 +48,10 @@ ASM_PFX(InternalMemZeroMem): mov rcx, rdx # rcx = Count shr rcx, 3 # rcx = rcx / 8 cld - rep stosq + rep stosq mov rcx, rdx # rcx = rdx and rcx, 7 # rcx = rcx & 7 - rep stosb + rep stosb pop rax # rax = Buffer pop rbx pop rdi diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm index c94b6b5703..c8cf40b4ca 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm +++ b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm @@ -47,10 +47,10 @@ InternalMemSetMem PROC USES rdi rbx mov rcx, rdx ; rcx = Count shr rcx, 3 ; rcx = rcx / 8 cld - rep stosq + rep stosq mov rcx, rdx ; rcx = rdx and rcx, 7 ; rcx = rcx & 7 - rep stosb + rep stosb pop rax ; rax = Buffer ret InternalMemSetMem ENDP diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c b/MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c index 4e102322a9..5892232821 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c +++ b/MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c @@ -51,7 +51,7 @@ ZeroMem ( ASSERT (!(Buffer == NULL && Length > 0)); ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1)); if (Length == 0) { - return Buffer; + return Buffer; } return InternalMemZeroMem (Buffer, Length); } -- cgit v1.2.3