Detab
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6639 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user