Searched refs:Remainder (Results 1 - 25 of 76) sorted by relevance

1234

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/
H A DDivS64x64Remainder.c30 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 DDivU64x32Remainder.c22 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 DDivS64x64Remainder.c22 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 DDivU64x32Remainder.c20 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 DDivS64x64Remainder.c30 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 DDivU64x32Remainder.c30 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 DDivU64x64Remainder.c29 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 DMath64.c292 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 DDivS64x64Remainder.c25 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 DDivU64x32Remainder.c25 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 DDivU64x64Remainder.c25 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 DMath64.c282 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 DGcc.c110 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 DStall.c59 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 DLlvm_int_lib.h81 UINT64 Remainder; member in struct:__anon3305
86 INT64 Remainder; member in struct:__anon3306
91 UINT32 Remainder; member in struct:__anon3307
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ipf/
H A DMath.c111 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 DDxeTimerLibEsal.c200 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 DIpfTimerLib.c193 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 DTscTimerLibShare.c252 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 DIpfTimerLib.c193 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 DX86TimerLib.c243 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 DAcpiTimerLib.c252 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 DDivU64x32.c28 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 DMath.c88 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 DMath.c124 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;

Completed in 1588 milliseconds

1234