2 Calculate the quotient of a 64-bit integer by a 32-bit integer
4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
13 Divides a 64-bit unsigned integer by a 32-bit unsigned integer and
14 generates a 64-bit unsigned result.
16 This function divides the 64-bit unsigned value Dividend by the 32-bit
17 unsigned value Divisor and generates a 64-bit unsigned quotient. This
18 function returns the 64-bit unsigned quotient.
20 @param Dividend A 64-bit unsigned value.
21 @param Divisor A 32-bit unsigned value.
23 @return Dividend / Divisor
28 InternalMathDivU64x32 (
34 mov eax
, dword ptr
[Dividend
+ 4]
38 push eax
; save quotient on stack
39 mov eax
, dword ptr
[Dividend
]
41 pop edx
; restore high
-order dword of the quotient