1. Updated function headers for all assembly function
2. Optimized register usage in SetMemXX functions in all lib instances 3. Fixed a logical error in CopyMem for all lib instances git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1139 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -27,18 +27,24 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
.686:
|
||||
#.MODEL flat,C
|
||||
.code:
|
||||
|
||||
.global _InternalMemScanMem64
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# CONST VOID *
|
||||
# EFIAPI
|
||||
# InternalMemScanMem64 (
|
||||
# IN CONST VOID *Buffer,
|
||||
# IN UINTN Length,
|
||||
# IN UINT64 Value
|
||||
# );
|
||||
#------------------------------------------------------------------------------
|
||||
_InternalMemScanMem64:
|
||||
push %edi
|
||||
movl 12(%esp), %ecx
|
||||
movl 16(%esp), %eax
|
||||
movl 20(%esp), %edx
|
||||
movl 8(%esp), %edi
|
||||
L0:
|
||||
L0:
|
||||
cmpl (%edi), %eax
|
||||
leal 8(%edi), %edi
|
||||
loopne L0
|
||||
@@ -46,7 +52,7 @@ L0:
|
||||
cmpl -4(%edi), %edx
|
||||
jecxz L1
|
||||
jne L0
|
||||
L1:
|
||||
L1:
|
||||
leal -8(%edi), %eax
|
||||
cmovne %ecx, %eax
|
||||
pop %edi
|
||||
|
Reference in New Issue
Block a user