]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/MultU64x32.asm
Fix bug in AsmCpuVirtual() to return 1 instead of 0 when CPU is in virtual mode.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / MultU64x32.asm
index e2806e3082e59cccfee12d2c4cb6464037e6ea39..f563e1695a3409a855602801ee3c803d4ab4c195 100644 (file)
@@ -1,7 +1,7 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation\r
-; All rights reserved. This program and the accompanying materials\r
+; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; This program and the accompanying materials\r
 ; are licensed and made available under the terms and conditions of the BSD License\r
 ; which accompanies this distribution.  The full text of the license may be found at\r
 ; http://opensource.org/licenses/bsd-license.php\r
     .model  flat,C\r
     .code\r
 \r
+;------------------------------------------------------------------------------\r
+; UINT64\r
+; EFIAPI\r
+; InternalMathMultU64x32 (\r
+;   IN      UINT64                    Multiplicand,\r
+;   IN      UINT32                    Multiplier\r
+;   );\r
+;------------------------------------------------------------------------------\r
 InternalMathMultU64x32  PROC\r
     mov     ecx, [esp + 12]\r
     mov     eax, ecx\r
-    imul    ecx, [esp + 8]\r
+    imul    ecx, [esp + 8]              ; overflow not detectable\r
     mul     dword ptr [esp + 4]\r
     add     edx, ecx\r
     ret\r