summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/MultU64x32.asm
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/MultU64x32.asm')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/MultU64x32.asm10
1 files changed, 9 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/MultU64x32.asm b/MdePkg/Library/BaseLib/Ia32/MultU64x32.asm
index e2806e3082..9c9ef06996 100644
--- a/MdePkg/Library/BaseLib/Ia32/MultU64x32.asm
+++ b/MdePkg/Library/BaseLib/Ia32/MultU64x32.asm
@@ -23,10 +23,18 @@
.model flat,C
.code
+;------------------------------------------------------------------------------
+; UINT64
+; EFIAPI
+; InternalMathMultU64x32 (
+; IN UINT64 Multiplicand,
+; IN UINT32 Multiplier
+; );
+;------------------------------------------------------------------------------
InternalMathMultU64x32 PROC
mov ecx, [esp + 12]
mov eax, ecx
- imul ecx, [esp + 8]
+ imul ecx, [esp + 8] ; overflow not detectable
mul dword ptr [esp + 4]
add edx, ecx
ret