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
10 Divides a 64-bit unsigned integer by a 32-bit unsigned integer and
11 generates a 64-bit unsigned result.
13 This function divides the 64-bit unsigned value Dividend by the 32-bit
14 unsigned value Divisor and generates a 64-bit unsigned quotient. This
15 function returns the 64-bit unsigned quotient.
17 @param Dividend A 64-bit unsigned value.
18 @param Divisor A 32-bit unsigned value.
20 @return Dividend / Divisor
25 InternalMathDivU64x32 (
31 mov eax
, dword ptr
[Dividend
+ 4]
35 push eax
; save quotient on stack
36 mov eax
, dword ptr
[Dividend
]
38 pop edx
; restore high
-order dword of the quotient