Searched defs:Remainder (Results 1 - 18 of 18) sorted by relevance

/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/Dxe/Misc/
H A DStall.c59 UINT32 Remainder; local
82 &Remainder
88 if (Remainder != 0) {
90 // If Remainder was not zero, then normally, Counter would be rounded
105 &Remainder
107 if (Remainder != 0) {
109 // If Remainder is not zero, then round Counter up by one tick.
/vbox/src/VBox/Devices/EFI/Firmware/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);
/vbox/src/VBox/Devices/EFI/Firmware/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);
H A DX86TimerLib.c278 UINT64 Remainder; local
288 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
291 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
292 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
293 // i.e. highest bit set in Remainder should <= 33.
295 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
296 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
298 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
/vbox/src/VBox/Devices/EFI/Firmware/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.c216 UINT64 Remainder; local
226 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
229 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
230 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
231 // i.e. highest bit set in Remainder should <= 33.
233 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
234 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
236 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Network/UefiPxeBcDxe/
H A DPxeBcSupport.c129 UINTN Remainder; local
132 Remainder = Number % 10;
135 Buffer[Length] = (UINT8) ('0' + Remainder);
/vbox/src/VBox/Devices/EFI/Firmware/OvmfPkg/Library/AcpiTimerLib/
H A DAcpiTimerLib.c261 UINT32 Remainder; local
268 NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, ACPI_TIMER_FREQUENCY, &Remainder), 1000000000u);
271 // Frequency < 0x100000000, so Remainder < 0x100000000, then (Remainder * 1,000,000,000)
274 NanoSeconds += DivU64x32 (MultU64x32 ((UINT64) Remainder, 1000000000u), ACPI_TIMER_FREQUENCY);
/vbox/src/VBox/Devices/EFI/Firmware/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);
/vbox/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/AcpiTimerLib/
H A DAcpiTimerLib.c307 UINT32 Remainder; local
314 NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, ACPI_TIMER_FREQUENCY, &Remainder), 1000000000u);
317 // Frequency < 0x100000000, so Remainder < 0x100000000, then (Remainder * 1,000,000,000)
320 NanoSeconds += DivU64x32 (MultU64x32 ((UINT64) Remainder, 1000000000u), ACPI_TIMER_FREQUENCY);
/vbox/src/VBox/Devices/EFI/Firmware/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...]
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/
H A DParseUpdateProfile.c587 UINT32 Remainder; local
601 Value = (INT64) DivU64x32Remainder ((UINT64)Value, 10, &Remainder);
607 *TempStr = (UINT8) ((UINT8)Remainder + '0');
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BasePrintLib/
H A DPrintLibInternal.c112 UINT32 Remainder; local
119 Value = (INT64)DivU64x32Remainder ((UINT64)Value, (UINT32)Radix, &Remainder);
120 *(++Buffer) = mHexStr[Remainder];
/vbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/UefiPxeBcDxe/
H A DPxeBcSupport.c1386 UINTN Remainder; local
1390 Remainder = Number % 10;
1392 Buffer[Length] = (UINT8) ('0' + Remainder);
/vbox/src/VBox/Devices/EFI/Firmware/PcAtChipsetPkg/PciHostBridgeDxe/
H A DPciRootBridgeIo.c1220 UINT32 Remainder; local
1255 NumberOfTicks = DivU64x32Remainder (Delay, (UINT32) mMetronome->TickPeriod, &Remainder);
1256 if (Remainder != 0) {
1323 UINT32 Remainder; local
1356 NumberOfTicks = DivU64x32Remainder (Delay, (UINT32)mMetronome->TickPeriod, &Remainder);
1357 if (Remainder != 0) {
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/DxePrintLibPrint2Protocol/
H A DPrintLib.c985 UINT32 Remainder; local
992 Value = (INT64)DivU64x32Remainder ((UINT64)Value, (UINT32)Radix, &Remainder);
993 *(++Buffer) = mHexStr[Remainder];
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/EbcDxe/
H A DEbcExecute.c3636 INT64 Remainder; local
3651 return (UINT64) (DivS64x64Remainder (Op1, Op2, &Remainder));
3679 UINT64 Remainder; local
3696 return (UINT64) (DivU64x64Remainder (Op1, Op2, &Remainder));
3724 INT64 Remainder; local
3737 DivS64x64Remainder ((INT64)Op1, (INT64)Op2, &Remainder);
3738 return Remainder;
3763 UINT64 Remainder; local
3776 DivU64x64Remainder (Op1, Op2, &Remainder);
3777 return Remainder;
[all...]
/vbox/src/libs/xpcom18a4/xpcom/io/
H A DnsLocalFileMac.cpp130 const char* Remainder() function in class:nsPathParser
1152 mAppendedPath = parser.Remainder();

Completed in 73 milliseconds