summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseMemoryLibOptDxe
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibOptDxe')
-rw-r--r--MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm4
-rw-r--r--MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c2
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);
}