TianoCore EDK2 master
Loading...
Searching...
No Matches
DivU64x32.c
Go to the documentation of this file.
1
23UINT64
24EFIAPI
26 IN UINT64 Dividend,
27 IN UINT32 Divisor
28 )
29{
30 _asm {
31 mov eax, dword ptr [Dividend + 4]
32 mov ecx, Divisor
33 xor edx, edx
34 div ecx
35 push eax ; save quotient on stack
36 mov eax, dword ptr [Dividend]
37 div ecx
38 pop edx ; restore high-order dword of the quotient
39 }
40}
UINT64 EFIAPI InternalMathDivU64x32(IN UINT64 Dividend, IN UINT32 Divisor)
Definition: DivU64x32.c:25
#define IN
Definition: Base.h:279