mirror of https://github.com/acidanthera/audk.git
Changed to pass the build with Visual Studio 2005
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4074 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1b86875186
commit
15d10a4c78
|
@ -38,7 +38,7 @@
|
||||||
InternalMemSetMem32 PROC
|
InternalMemSetMem32 PROC
|
||||||
mov eax, [esp + 4] ; eax <- Buffer as return value
|
mov eax, [esp + 4] ; eax <- Buffer as return value
|
||||||
mov ecx, [esp + 8] ; ecx <- Count
|
mov ecx, [esp + 8] ; ecx <- Count
|
||||||
movd mm0, [esp + 12] ; mm0 <- Value
|
movd mm0, dword ptr [esp + 12] ; mm0 <- Value
|
||||||
shr ecx, 1 ; ecx <- number of qwords to set
|
shr ecx, 1 ; ecx <- number of qwords to set
|
||||||
mov edx, eax ; edx <- Buffer
|
mov edx, eax ; edx <- Buffer
|
||||||
jz @SetDwords
|
jz @SetDwords
|
||||||
|
@ -46,12 +46,12 @@ InternalMemSetMem32 PROC
|
||||||
psllq mm1, 32
|
psllq mm1, 32
|
||||||
por mm0, mm1
|
por mm0, mm1
|
||||||
@@:
|
@@:
|
||||||
movq [edx], mm0
|
movq qword ptr [edx], mm0
|
||||||
lea edx, [edx + 8] ; use "lea" to avoid change in flags
|
lea edx, [edx + 8] ; use "lea" to avoid change in flags
|
||||||
loop @B
|
loop @B
|
||||||
@SetDwords:
|
@SetDwords:
|
||||||
jnc @F
|
jnc @F
|
||||||
movd [edx], mm0
|
movd dword ptr [edx], mm0
|
||||||
@@:
|
@@:
|
||||||
ret
|
ret
|
||||||
InternalMemSetMem32 ENDP
|
InternalMemSetMem32 ENDP
|
||||||
|
|
|
@ -40,9 +40,9 @@ InternalMemSetMem64 PROC
|
||||||
mov ecx, [esp + 8] ; ecx <- Count
|
mov ecx, [esp + 8] ; ecx <- Count
|
||||||
test al, 8
|
test al, 8
|
||||||
mov edx, eax
|
mov edx, eax
|
||||||
movq xmm0, [esp + 12]
|
movq xmm0, qword ptr [esp + 12]
|
||||||
jz @F
|
jz @F
|
||||||
movq [edx], xmm0
|
movq qword ptr [edx], xmm0
|
||||||
add edx, 8
|
add edx, 8
|
||||||
dec ecx
|
dec ecx
|
||||||
@@:
|
@@:
|
||||||
|
@ -56,7 +56,7 @@ InternalMemSetMem64 PROC
|
||||||
mfence
|
mfence
|
||||||
@SetQwords:
|
@SetQwords:
|
||||||
jnc @F
|
jnc @F
|
||||||
movq [edx], xmm0
|
movq qword ptr [edx], xmm0
|
||||||
@@:
|
@@:
|
||||||
ret
|
ret
|
||||||
InternalMemSetMem64 ENDP
|
InternalMemSetMem64 ENDP
|
||||||
|
|
Loading…
Reference in New Issue