]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a bug in InternalMathDivRemU64x64(). The bug is that the 64-bit divisor is design...
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 9 Oct 2006 10:09:26 +0000 (10:09 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 9 Oct 2006 10:09:26 +0000 (10:09 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1693 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.c

index 62034f7b84ce3e6507248db84474f342c8a17e77..2a893147c70b5eb5c7e6542b38f896d2aa7de003 100644 (file)
@@ -28,6 +28,7 @@ InternalMathDivRemU64x64 (
     mov     eax, dword ptr [Dividend + 0]   // edx:eax <- dividend\r
     mov     edi, edx\r
     mov     esi, eax                    // edi:esi <- dividend\r
+    mov     ecx, dword ptr [Divisor + 4]\r
     mov     ebx, dword ptr [Divisor + 0]   // ecx:ebx <- divisor\r
 BitLoop:\r
     shr     edx, 1\r