diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-19 15:22:53 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-19 15:22:53 +0000 |
commit | 6f890d5b408233e5a305163a3f1d634a8b5d5744 (patch) | |
tree | f08e5a96e7fc6c7789269776e7022f31266064ed /MdePkg/Library/BaseMemoryLibOptDxe | |
parent | ee6c452c81f135a53f918761f02333ee57d7776d (diff) | |
download | edk2-6f890d5b408233e5a305163a3f1d634a8b5d5744.tar.gz edk2-6f890d5b408233e5a305163a3f1d634a8b5d5744.tar.bz2 edk2-6f890d5b408233e5a305163a3f1d634a8b5d5744.zip |
Detab
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6639 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibOptDxe')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S | 4 | ||||
-rw-r--r-- | MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm | 4 | ||||
-rw-r--r-- | MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c | 2 |
3 files changed, 5 insertions, 5 deletions
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);
}
|