TianoCore EDK2 master
Loading...
Searching...
No Matches
MathModU64x64.c
Go to the documentation of this file.
1
11#include <Library/BaseLib.h>
12
13/* https://gcc.gnu.org/onlinedocs/gccint/Integer-library-routines.html */
14__attribute__ ((__used__))
15unsigned long long
16__umoddi3 (
17 unsigned long long A,
18 unsigned long long B
19 )
20{
21 unsigned long long Reminder;
22
23 DivU64x64Remainder ((UINT64)A, (UINT64)B, (UINT64 *)&Reminder);
24
25 return Reminder;
26}
UINT64 EFIAPI DivU64x64Remainder(IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL)
unsigned long long UINT64 __attribute__((aligned(8)))
Definition: ProcessorBind.h:28