Gcc cleanup for baselib & basememorylib in mdepkg/library/

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5587 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian
2008-07-31 06:23:32 +00:00
parent 5f87392966
commit 85c25283ed
104 changed files with 285 additions and 290 deletions

View File

@@ -21,10 +21,7 @@
#
#------------------------------------------------------------------------------
.386:
.code:
.globl _InternalMemSetMem
.globl ASM_PFX(InternalMemSetMem)
#------------------------------------------------------------------------------
# VOID *
@@ -34,22 +31,20 @@
# IN UINT8 Value
# )
#------------------------------------------------------------------------------
_InternalMemSetMem:
ASM_PFX(InternalMemSetMem):
push %edi
movl 12(%esp),%ecx
movb 16(%esp),%al
movb %ah, %al
movb %al, %ah
shrd $16, %eax, %edx
shld $16, %edx, %eax
movl %edx, %ecx
movl %ecx, %edx
movl 8(%esp),%edi
shrd $2, %ecx, %ecx
rep
stosl
movl %ecx, %edx
andl $3, %ecx
rep
shr $2, %ecx
rep stosl
movl %edx, %ecx
andl $3, %ecx
rep stosb
movl 8(%esp),%eax
pop %edi
ret