summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseMemoryLibMmx
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibMmx')
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S2
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S2
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S2
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S2
5 files changed, 6 insertions, 6 deletions
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S
index c7330a9266..7329d6818d 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S
@@ -43,7 +43,7 @@ ASM_PFX(InternalMemSetMem):
andl $7, %edx
shrl $3, %ecx # # of Qwords to set
jz L1
- addl $0x-10, %esp
+ addl $-16, %esp
movq %mm0, (%esp) # save mm0
movq %mm1, 8(%esp) # save mm1
movd %eax, %mm0
@@ -53,7 +53,7 @@ ASM_PFX(InternalMemSetMem):
L0:
movq %mm0, (%edi)
addl $8, %edi
- loopl L0
+ loop L0
movq (%esp), %mm0 # restore mm0
movq 8(%esp), %mm1 # restore mm1
addl $0x10, %esp # stack cleanup
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S
index 0ba631860a..4d84bebba9 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S
@@ -49,7 +49,7 @@ ASM_PFX(InternalMemSetMem16):
L0:
movq %mm0, (%edi)
addl $8, %edi
- loopl L0
+ loop L0
L1:
movl %edx, %ecx
rep
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S
index 36291de500..fb0d0788f9 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S
@@ -44,7 +44,7 @@ ASM_PFX(InternalMemSetMem32):
L0:
movq %mm0, (%edx)
lea 8(%edx), %edx
- loopl L0
+ loop L0
L1:
jnc L2
movd %mm0, (%edx)
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S
index 2f514444c8..53379ad0ef 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S
@@ -39,5 +39,5 @@ ASM_PFX(InternalMemSetMem64):
L0:
movq %mm0, (%edx)
lea 8(%edx), %edx
- loopl L0
+ loop L0
ret
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S b/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S
index d642028c9d..a4c7d8cb62 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S
@@ -36,7 +36,7 @@
ASM_GLOBAL ASM_PFX(InternalMemSetMem64)
ASM_PFX(InternalMemSetMem64):
movd %r8, %mm0 #Value
- movw %rcx, %rax #rax <- Buffer
+ movq %rcx, %rax #rax <- Buffer
xchg %rdx, %rcx #rcx <- Count
L0:
movntq %mm0, (%rdx)