TianoCore EDK2
master
Loading...
Searching...
No Matches
DivU64x32Remainder.c
Go to the documentation of this file.
1
26
UINT64
27
EFIAPI
28
InternalMathDivRemU64x32
(
29
IN
UINT64 Dividend,
30
IN
UINT32 Divisor,
31
OUT
UINT32 *Remainder
32
)
33
{
34
_asm {
35
mov ecx, Divisor
36
mov eax, dword ptr [Dividend + 4]
37
xor edx, edx
38
div ecx
39
push eax
40
mov eax, dword ptr [Dividend + 0]
41
div ecx
42
mov ecx, Remainder
43
jecxz RemainderNull
// abandon remainder if Remainder == NULL
44
mov [ecx], edx
45
RemainderNull:
46
pop edx
47
}
48
}
InternalMathDivRemU64x32
UINT64 EFIAPI InternalMathDivRemU64x32(IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL)
Definition:
Math64.c:288
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
MdePkg
Library
BaseLib
Ia32
DivU64x32Remainder.c
Generated on Fri Nov 15 2024 18:01:17 for TianoCore EDK2 by
1.9.6