HomeSort by relevance Sort by last modified time
    Searched defs:Remainder (Results 1 - 25 of 66) sorted by null

1 2 3

  /prebuilts/go/darwin-x86/src/math/
remainder.go 29 // Remainder returns the IEEE 754 floating-point remainder of x/y.
32 // Remainder(ħInf, y) = NaN
33 // Remainder(NaN, y) = NaN
34 // Remainder(x, 0) = NaN
35 // Remainder(x, ħInf) = x
36 // Remainder(x, NaN) = NaN
37 func Remainder(x, y float64) float64
39 func remainder(x, y float64) float64 { func
  /prebuilts/go/linux-x86/src/math/
remainder.go 29 // Remainder returns the IEEE 754 floating-point remainder of x/y.
32 // Remainder(ħInf, y) = NaN
33 // Remainder(NaN, y) = NaN
34 // Remainder(x, 0) = NaN
35 // Remainder(x, ħInf) = x
36 // Remainder(x, NaN) = NaN
37 func Remainder(x, y float64) float64
39 func remainder(x, y float64) float64 { func
  /device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/
Stall.c 59 UINT32 Remainder;
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/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Ia32/
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
63 div ecx ; Leave the REMAINDER in EDX as High 32-bit of new dividend
64 ; Dividend Divisor Quoitent...Remainder
67 mov ecx, Remainder ; Put &REMAINDER to ecx
    [all...]
  /device/linaro/bootloader/edk2/ArmPkg/Library/CompilerIntrinsicsLib/Arm/
Llvm_int_lib.h 81 UINT64 Remainder;
86 INT64 Remainder;
91 UINT32 Remainder;
  /device/linaro/bootloader/edk2/DuetPkg/Library/DuetTimerLib/
X86TimerLib.c 265 UINT32 Remainder;
272 NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, 3579545, &Remainder), 1000000000u);
275 // Frequency < 0x100000000, so Remainder < 0x100000000, then (Remainder * 1,000,000,000)
278 NanoSeconds += DivU64x32 (MultU64x32 ((UINT64) Remainder, 1000000000u), 3579545);
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePrintLib/
PrintLibInternal.c 83 UINT32 Remainder;
91 Value = (INT64)DivU64x32Remainder ((UINT64)Value, (UINT32)Radix, &Remainder);
92 *(Buffer++) = mHexStr[Remainder];
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/
ValueToString.c 148 UINTN Remainder;
158 Remainder = 0;
170 Value = (INT64)DivU64x32 ((UINT64)Value, 10, &Remainder);
171 *(TempStr++) = (CHAR16)(Remainder + '0');
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/UefiPxeBcDxe/
PxeBcSupport.c 129 UINTN Remainder;
132 Remainder = Number % 10;
135 Buffer[Length] = (UINT8) ('0' + Remainder);
  /device/linaro/bootloader/edk2/MdePkg/Library/DxeTimerLibEsal/
DxeTimerLibEsal.c 200 UINT64 Remainder;
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/
IpfTimerLib.c 193 UINT64 Remainder;
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);
X86TimerLib.c 352 UINT64 Remainder;
362 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
365 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
366 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
367 // i.e. highest bit set in Remainder should <= 33.
369 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
370 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
372 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
  /device/linaro/bootloader/edk2/OvmfPkg/Library/AcpiTimerLib/
AcpiTimerLib.c 200 UINT32 Remainder;
207 NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, ACPI_TIMER_FREQUENCY, &Remainder), 1000000000u);
210 // Frequency < 0x100000000, so Remainder < 0x100000000, then (Remainder * 1,000,000,000)
213 NanoSeconds += DivU64x32 (MultU64x32 ((UINT64) Remainder, 1000000000u), ACPI_TIMER_FREQUENCY);
  /device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/
CEATABlockIo.c 95 UINT32 Remainder;
144 CEATALBA = DivU64x32Remainder (Address, DATA_UNIT_SIZE, &Remainder);
145 ASSERT(Remainder == 0);
204 UINT32 Remainder;
257 CEATALBA = DivU64x32Remainder (Address, DATA_UNIT_SIZE, &Remainder);
258 ASSERT(Remainder == 0);
337 UINT32 Remainder;
383 Remainder = 0;
384 CardData->BlockNumber = DivU64x32Remainder (MaxSize, CardData->BlockIoMedia.BlockSize, &Remainder);
385 ASSERT(Remainder == 0);
    [all...]
  /device/linaro/bootloader/edk2/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/
IpfTimerLib.c 193 UINT64 Remainder;
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);
X86TimerLib.c 243 UINT64 Remainder;
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/Vlv2TbltDevicePkg/Library/IntelPchAcpiTimerLib/
IntelPchAcpiTimerLib.c 251 UINT32 Remainder;
258 NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, V_PCH_ACPI_PM1_TMR_FREQUENCY, &Remainder), 1000000000u);
261 // Frequency < 0x100000000, so Remainder < 0x100000000, then (Remainder * 1,000,000,000)
264 NanoSeconds += DivU64x32 (MultU64x32 ((UINT64) Remainder, 1000000000u), V_PCH_ACPI_PM1_TMR_FREQUENCY);
  /external/llvm/lib/DebugInfo/CodeView/
ListRecordBuilder.cpp 38 uint32_t Remainder =
40 if (Remainder != 0) {
41 for (int32_t PaddingBytesLeft = 4 - Remainder; PaddingBytesLeft > 0;
  /external/llvm/lib/DebugInfo/PDB/Raw/
Hash.cpp 30 const uint8_t *Remainder = reinterpret_cast<const uint8_t *>(Longs.end());
36 uint16_t Value = *reinterpret_cast<const ulittle16_t *>(Remainder);
38 Remainder += 2;
44 Result ^= *(Remainder++);
  /external/llvm/unittests/Transforms/Utils/
IntegerDivision.cpp 85 Module M("test remainder", C);
109 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
110 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub);
115 Module M("test remainder", C);
139 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
140 EXPECT_TRUE(Remainder && Remainder->getOpcode() == Instruction::Sub);
206 Module M("test remainder", C);
230 Instruction* Remainder = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0))
    [all...]
  /device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/AcpiTimerLib/
AcpiTimerLib.c 252 UINT64 Remainder;
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/PcAtChipsetPkg/Library/AcpiTimerLib/
AcpiTimerLib.c 314 UINT64 Remainder;
324 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
327 // Ensure (Remainder * 1,000,000,000) will not overflow 64-bit.
328 // Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
329 // i.e. highest bit set in Remainder should <= 33.
331 Shift = MAX (0, HighBitSet64 (Remainder) - 33);
332 Remainder = RShiftU64 (Remainder, (UINTN) Shift);
334 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
  /device/linaro/bootloader/edk2/PerformancePkg/Library/TscTimerLib/
TscTimerLibShare.c 252 UINT64 Remainder;
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/StdLib/LibC/CRT/
Gcc.c 106 // Return the remainder of the signed division of Dividend and Divisor
110 INT64 Remainder;
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;
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;
    [all...]
  /external/llvm/lib/Support/
ScaledNumber.cpp 71 uint64_t Remainder = Dividend64 % Divisor;
78 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor));

Completed in 905 milliseconds

1 2 3