Home
last modified time | relevance | path

Searched refs:Remainder (Results 1 – 25 of 87) sorted by relevance

1234

/device/linaro/bootloader/edk2/StdLib/LibC/CRT/
DGcc.c110 INT64 Remainder; in __modsi3() local
112 (void) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, &Remainder); in __modsi3()
113 DEBUG((DEBUG_INFO, "modsi3: %d %% %d = %d\n", Dividend, Divisor, (int)Remainder)); in __modsi3()
115 return (int) Remainder; in __modsi3()
120 INT64 Remainder; in __moddi3() local
122 (void) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, &Remainder); in __moddi3()
123 DEBUG((DEBUG_INFO, "moddi3: %Ld %% %Ld = %Ld\n", (INT64)Dividend, (INT64)Divisor, Remainder)); in __moddi3()
125 return Remainder; in __moddi3()
130 INT64 Remainder; in __modti3() local
132 (void) DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, &Remainder); in __modti3()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/
DDivS64x64Remainder.c46 OUT INT64 *Remainder OPTIONAL in InternalMathDivRemS64x64()
54 (UINT64 *) Remainder in InternalMathDivRemS64x64()
56 if (Remainder != NULL && Dividend < 0) { in InternalMathDivRemS64x64()
57 *Remainder = -*Remainder; in InternalMathDivRemS64x64()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/Ia32/
DDivS64x64Remainder.c39 OUT INT64 *Remainder OPTIONAL in InternalMathDivRemS64x64()
47 (UINT64 *) Remainder in InternalMathDivRemS64x64()
49 if (Remainder != NULL && Dividend < 0) { in InternalMathDivRemS64x64()
50 *Remainder = -*Remainder; in InternalMathDivRemS64x64()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/
DMath64.c309 OUT UINT32 *Remainder OPTIONAL in InternalMathDivRemU64x32()
312 if (Remainder != NULL) { in InternalMathDivRemU64x32()
313 *Remainder = (UINT32)(Dividend % Divisor); in InternalMathDivRemU64x32()
340 OUT UINT64 *Remainder OPTIONAL in InternalMathDivRemU64x64()
343 if (Remainder != NULL) { in InternalMathDivRemU64x64()
344 *Remainder = Dividend % Divisor; in InternalMathDivRemU64x64()
370 OUT INT64 *Remainder OPTIONAL in InternalMathDivRemS64x64()
373 if (Remainder != NULL) { in InternalMathDivRemS64x64()
374 *Remainder = Dividend % Divisor; in InternalMathDivRemS64x64()
DDivS64x64Remainder.c49 OUT INT64 *Remainder OPTIONAL in DivS64x64Remainder()
53 return InternalMathDivRemS64x64 (Dividend, Divisor, Remainder); in DivS64x64Remainder()
DDivU64x32Remainder.c49 OUT UINT32 *Remainder OPTIONAL in DivU64x32Remainder()
53 return InternalMathDivRemU64x32 (Dividend, Divisor, Remainder); in DivU64x32Remainder()
DDivU64x64Remainder.c48 OUT UINT64 *Remainder OPTIONAL in DivU64x64Remainder()
52 return InternalMathDivRemU64x64 (Dividend, Divisor, Remainder); in DivU64x64Remainder()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/
DMath64.c299 OUT UINT32 *Remainder OPTIONAL in InternalMathDivRemU64x32()
302 if (Remainder != NULL) { in InternalMathDivRemU64x32()
303 *Remainder = (UINT32)(Dividend % Divisor); in InternalMathDivRemU64x32()
330 OUT UINT64 *Remainder OPTIONAL in InternalMathDivRemU64x64()
333 if (Remainder != NULL) { in InternalMathDivRemU64x64()
334 *Remainder = Dividend % Divisor; in InternalMathDivRemU64x64()
361 OUT INT64 *Remainder OPTIONAL in InternalMathDivRemS64x64()
364 if (Remainder != NULL) { in InternalMathDivRemS64x64()
365 *Remainder = Dividend % Divisor; in InternalMathDivRemS64x64()
DDivU64x64Remainder.c44 OUT UINT64 *Remainder OPTIONAL in DivU64x64Remainder()
48 return InternalMathDivRemU64x64 (Dividend, Divisor, Remainder); in DivU64x64Remainder()
DDivU64x32Remainder.c44 OUT UINT32 *Remainder OPTIONAL in DivU64x32Remainder()
48 return InternalMathDivRemU64x32 (Dividend, Divisor, Remainder); in DivU64x32Remainder()
DDivS64x64Remainder.c48 OUT INT64 *Remainder OPTIONAL in DivS64x64Remainder()
52 return InternalMathDivRemS64x64 (Dividend, Divisor, Remainder); in DivS64x64Remainder()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/
DStall.c59 UINT32 Remainder; in CoreStall() local
78 &Remainder in CoreStall()
84 if (Remainder != 0) { in CoreStall()
101 &Remainder in CoreStall()
103 if (Remainder != 0) { in CoreStall()
/device/linaro/bootloader/edk2/MdePkg/Library/DxeTimerLibEsal/
DDxeTimerLibEsal.c200 UINT64 Remainder; in GetTimeInNanoSecond() local
210 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
217 Shift = MAX (0, HighBitSet64 (Remainder) - 33); in GetTimeInNanoSecond()
218 Remainder = RShiftU64 (Remainder, (UINTN) Shift); in GetTimeInNanoSecond()
220 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/
DIpfTimerLib.c193 UINT64 Remainder; in GetTimeInNanoSecond() local
203 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
210 Shift = MAX (0, HighBitSet64 (Remainder) - 33); in GetTimeInNanoSecond()
211 Remainder = RShiftU64 (Remainder, (UINTN) Shift); in GetTimeInNanoSecond()
213 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
DX86TimerLib.c243 UINT64 Remainder; in GetTimeInNanoSecond() local
253 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
260 Shift = MAX (0, HighBitSet64 (Remainder) - 33); in GetTimeInNanoSecond()
261 Remainder = RShiftU64 (Remainder, (UINTN) Shift); in GetTimeInNanoSecond()
263 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/MdePkg/Library/SecPeiDxeTimerLibCpu/
DIpfTimerLib.c193 UINT64 Remainder; in GetTimeInNanoSecond() local
203 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
210 Shift = MAX (0, HighBitSet64 (Remainder) - 33); in GetTimeInNanoSecond()
211 Remainder = RShiftU64 (Remainder, (UINTN) Shift); in GetTimeInNanoSecond()
213 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
DX86TimerLib.c352 UINT64 Remainder; in GetTimeInNanoSecond() local
362 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
369 Shift = MAX (0, HighBitSet64 (Remainder) - 33); in GetTimeInNanoSecond()
370 Remainder = RShiftU64 (Remainder, (UINTN) Shift); in GetTimeInNanoSecond()
372 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/PerformancePkg/Library/TscTimerLib/
DTscTimerLibShare.c252 UINT64 Remainder; in GetTimeInNanoSecond() local
262 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
269 Shift = MAX (0, HighBitSet64 (Remainder) - 33); in GetTimeInNanoSecond()
270 Remainder = RShiftU64 (Remainder, (UINTN) Shift); in GetTimeInNanoSecond()
272 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/AcpiTimerLib/
DAcpiTimerLib.c252 UINT64 Remainder; in GetTimeInNanoSecond() local
262 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
269 Shift = MAX (0, HighBitSet64 (Remainder) - 33); in GetTimeInNanoSecond()
270 Remainder = RShiftU64 (Remainder, (UINTN) Shift); in GetTimeInNanoSecond()
272 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/
DCEATABlockIo.c95 UINT32 Remainder; in CEATABlockReadBlocks() local
144 CEATALBA = DivU64x32Remainder (Address, DATA_UNIT_SIZE, &Remainder); in CEATABlockReadBlocks()
145 ASSERT(Remainder == 0); in CEATABlockReadBlocks()
204 UINT32 Remainder; in CEATABlockWriteBlocks() local
257 CEATALBA = DivU64x32Remainder (Address, DATA_UNIT_SIZE, &Remainder); in CEATABlockWriteBlocks()
258 ASSERT(Remainder == 0); in CEATABlockWriteBlocks()
336 UINT32 Remainder; in CEATABlockIoInit() local
382 Remainder = 0; in CEATABlockIoInit()
383 …CardData->BlockNumber = DivU64x32Remainder (MaxSize, CardData->BlockIoMedia.BlockSize, &Remainder); in CEATABlockIoInit()
384 ASSERT(Remainder == 0); in CEATABlockIoInit()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ipf/
DMath.c111 OUT UINTN *Remainder OPTIONAL in DivU64x32()
134 if (Remainder) { in DivU64x32()
135 *Remainder = Dividend % Divisor; in DivU64x32()
/device/linaro/bootloader/edk2/ArmPkg/Library/CompilerIntrinsicsLib/Arm/
DLlvm_int_lib.h81 UINT64 Remainder; member
86 INT64 Remainder; member
91 UINT32 Remainder; member
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/AcpiTimerLib/
DAcpiTimerLib.c314 UINT64 Remainder; in GetTimeInNanoSecond() local
324 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
331 Shift = MAX (0, HighBitSet64 (Remainder) - 33); in GetTimeInNanoSecond()
332 Remainder = RShiftU64 (Remainder, (UINTN) Shift); in GetTimeInNanoSecond()
334 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Ia32/
DDivU64x32.c28 OUT UINTN *Remainder OPTIONAL in DivU64x32()
57 div ecx ; Dividend Divisor Quoitent...Remainder in DivU64x32()
64 ; Dividend Divisor Quoitent...Remainder in DivU64x32()
67 mov ecx, Remainder ; Put &REMAINDER to ecx in DivU64x32()
/device/linaro/bootloader/edk2/StdLib/LibC/Containers/Queues/
DFifo.c434 size_t Remainder; in FIFO_Flush() local
442 Remainder = 0; in FIFO_Flush()
445 Remainder = FIFO_Reduce(Self, NumToFlush); in FIFO_Flush()
447 return Remainder; in FIFO_Flush()
463 size_t Remainder; in FIFO_Truncate() local
467 Remainder = FIFO_NumInQueue(Self, AsElements); in FIFO_Truncate()
468 if(Remainder > 0) { in FIFO_Truncate()
470 --Remainder; in FIFO_Truncate()
472 return Remainder; in FIFO_Truncate()

1234