/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/ |
H A D | DivS64x64Remainder.c | 30 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
31 is not NULL, then the 64-bit unsigned remainder is returned in Remainder.
36 @param Remainder A pointer to a 64-bit signed value. This parameter is
46 OUT INT64 *Remainder OPTIONAL
54 (UINT64 *) Remainder
56 if (Remainder != NULL && Dividend < 0) {
57 *Remainder = -*Remainder;
|
H A D | DivU64x32Remainder.c | 22 OUT UINT32 *Remainder
33 mov ecx, Remainder
34 jecxz RemainderNull // abandon remainder if Remainder == NULL
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/Ia32/ |
H A D | DivS64x64Remainder.c | 22 signed value Divisor and generates a 64-bit signed quotient. If Remainder
23 is not NULL, then the 64-bit signed remainder is returned in Remainder.
28 @param Remainder A pointer to a 64-bit signed value. This parameter is
39 OUT INT64 *Remainder OPTIONAL
47 (UINT64 *) Remainder
49 if (Remainder != NULL && Dividend < 0) {
50 *Remainder = -*Remainder;
|
H A D | DivU64x32Remainder.c | 20 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
21 is not NULL, then the 32-bit unsigned remainder is returned in Remainder.
26 @param Remainder A pointer to a 32-bit unsigned value. This parameter is
37 OUT UINT32 *Remainder
48 mov ecx, Remainder
49 jecxz RemainderNull // abandon remainder if Remainder == NULL
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/ |
H A D | DivS64x64Remainder.c | 30 value Divisor and generates a 64-bit signed quotient. If Remainder is not
31 NULL, then the 64-bit signed remainder is returned in Remainder. This
38 @param Remainder A pointer to a 64-bit signed value. This parameter is
49 OUT INT64 *Remainder OPTIONAL
53 return InternalMathDivRemS64x64 (Dividend, Divisor, Remainder);
|
H A D | DivU64x32Remainder.c | 30 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
31 is not NULL, then the 32-bit unsigned remainder is returned in Remainder.
38 @param Remainder A pointer to a 32-bit unsigned value. This parameter is
49 OUT UINT32 *Remainder OPTIONAL
53 return InternalMathDivRemU64x32 (Dividend, Divisor, Remainder);
|
H A D | DivU64x64Remainder.c | 29 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
30 is not NULL, then the 64-bit unsigned remainder is returned in Remainder.
37 @param Remainder A pointer to a 64-bit unsigned value. This parameter is
48 OUT UINT64 *Remainder OPTIONAL
52 return InternalMathDivRemU64x64 (Dividend, Divisor, Remainder);
|
H A D | Math64.c | 292 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
293 is not NULL, then the 32-bit unsigned remainder is returned in Remainder.
298 @param Remainder A pointer to a 32-bit unsigned value. This parameter is
309 OUT UINT32 *Remainder OPTIONAL
312 if (Remainder != NULL) {
313 *Remainder = (UINT32)(Dividend % Divisor);
323 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
324 is not NULL, then the 64-bit unsigned remainder is returned in Remainder.
329 @param Remainder A pointer to a 64-bit unsigned value. This parameter is
340 OUT UINT64 *Remainder OPTIONA [all...] |
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/ |
H A D | DivS64x64Remainder.c | 25 value Divisor and generates a 64-bit signed quotient. If Remainder is not
26 NULL, then the 64-bit signed remainder is returned in Remainder. This
37 @param Remainder A pointer to a 64-bit signed value. This parameter is
48 OUT INT64 *Remainder OPTIONAL
52 return InternalMathDivRemS64x64 (Dividend, Divisor, Remainder);
|
H A D | DivU64x32Remainder.c | 25 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
26 is not NULL, then the 32-bit unsigned remainder is returned in Remainder.
33 @param Remainder A pointer to a 32-bit unsigned value. This parameter is
44 OUT UINT32 *Remainder OPTIONAL
48 return InternalMathDivRemU64x32 (Dividend, Divisor, Remainder);
|
H A D | DivU64x64Remainder.c | 25 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
26 is not NULL, then the 64-bit unsigned remainder is returned in Remainder.
33 @param Remainder A pointer to a 64-bit unsigned value. This parameter is
44 OUT UINT64 *Remainder OPTIONAL
48 return InternalMathDivRemU64x64 (Dividend, Divisor, Remainder);
|
H A D | Math64.c | 282 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
283 is not NULL, then the 32-bit unsigned remainder is returned in Remainder.
288 @param Remainder A pointer to a 32-bit unsigned value. This parameter is
299 OUT UINT32 *Remainder OPTIONAL
302 if (Remainder != NULL) {
303 *Remainder = (UINT32)(Dividend % Divisor);
313 unsigned value Divisor and generates a 64-bit unsigned quotient. If Remainder
314 is not NULL, then the 64-bit unsigned remainder is returned in Remainder.
319 @param Remainder A pointer to a 64-bit unsigned value. This parameter is
330 OUT UINT64 *Remainder OPTIONA [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/CRT/ |
H A D | Gcc.c | 110 INT64 Remainder;
local 112 (void) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, &Remainder);
113 DEBUG((DEBUG_INFO, "modsi3: %d %% %d = %d\n", Dividend, Divisor, (int)Remainder));
115 return (int) Remainder;
120 INT64 Remainder;
local 122 (void) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, &Remainder);
123 DEBUG((DEBUG_INFO, "moddi3: %Ld %% %Ld = %Ld\n", (INT64)Dividend, (INT64)Divisor, Remainder));
125 return Remainder;
130 INT64 Remainder;
local 132 (void) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, &Remainder);
169 UINT64 Remainder; local 179 UINT64 Remainder; local 189 UINT64 Remainder; local [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/ |
H A D | Stall.c | 59 UINT32 Remainder;
local 78 &Remainder
84 if (Remainder != 0) {
86 // If Remainder was not zero, then normally, Counter would be rounded
101 &Remainder
103 if (Remainder != 0) {
105 // If Remainder is not zero, then round Counter up by one tick.
|
/device/linaro/bootloader/edk2/ArmPkg/Library/CompilerIntrinsicsLib/Arm/ |
H A D | Llvm_int_lib.h | 81 UINT64 Remainder;
member in struct:__anon3572 86 INT64 Remainder;
member in struct:__anon3573 91 UINT32 Remainder;
member in struct:__anon3574
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ipf/ |
H A D | Math.c | 111 OUT UINTN *Remainder OPTIONAL
118 64bit result and the Remainder.
125 Remainder - buffer for remainder
130 Remainder = Dividend mod Divisor
134 if (Remainder) {
135 *Remainder = Dividend % Divisor;
|
/device/linaro/bootloader/edk2/MdePkg/Library/DxeTimerLibEsal/ |
H A D | DxeTimerLibEsal.c | 200 UINT64 Remainder;
local 210 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
213 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
214 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
215 // i.e. highest bit set in Remainder should <= 33.
217 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
218 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
220 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
|
/device/linaro/bootloader/edk2/MdePkg/Library/SecPeiDxeTimerLibCpu/ |
H A D | IpfTimerLib.c | 193 UINT64 Remainder;
local 203 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
206 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
207 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
208 // i.e. highest bit set in Remainder should <= 33.
210 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
211 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
213 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
|
/device/linaro/bootloader/edk2/PerformancePkg/Library/TscTimerLib/ |
H A D | TscTimerLibShare.c | 252 UINT64 Remainder;
local 262 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
265 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
266 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
267 // i.e. highest bit set in Remainder should <= 33.
269 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
270 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
272 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/ |
H A D | IpfTimerLib.c | 193 UINT64 Remainder;
local 203 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
206 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
207 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
208 // i.e. highest bit set in Remainder should <= 33.
210 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
211 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
213 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
|
H A D | X86TimerLib.c | 243 UINT64 Remainder;
local 253 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
256 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
257 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
258 // i.e. highest bit set in Remainder should <= 33.
260 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
261 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
263 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
|
/device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/AcpiTimerLib/ |
H A D | AcpiTimerLib.c | 252 UINT64 Remainder;
local 262 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
265 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
266 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
267 // i.e. highest bit set in Remainder should <= 33.
269 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
270 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
272 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Ia32/ |
H A D | DivU64x32.c | 28 OUT UINTN *Remainder OPTIONAL
35 64bit result and the Remainder.
41 Remainder - buffer for remainder
46 Remainder = Dividend mod Divisor
57 div ecx ; Dividend Divisor Quoitent...Remainder
64 ; Dividend Divisor Quoitent...Remainder
67 mov ecx, Remainder ; Put &REMAINDER to ecx
local
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/X64/ |
H A D | Math.c | 88 OUT UINTN *Remainder OPTIONAL
95 64bit result and the Remainder.
103 Remainder -
108 Remainder = Dividend mod Divisor
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/ |
H A D | Math.c | 124 OUT UINTN *Remainder OPTIONAL
131 64bit result and the Remainder.
137 Remainder - buffer for remainder
142 Remainder = Dividend mod Divisor
146 if (Remainder != NULL) {
147 *Remainder = Dividend % Divisor;
|