| /NextBSD/sys/contrib/dev/acpica/components/utilities/ |
| HD | utmath.c | 169 UINT64_OVERLAY Remainder; in AcpiUtDivide() local 196 Remainder.Part.Hi = 0; in AcpiUtDivide() 205 Quotient.Part.Lo, Remainder.Part.Lo); in AcpiUtDivide() 244 Remainder.Part.Hi = Partial3.Part.Lo; in AcpiUtDivide() 245 Remainder.Part.Lo = Partial2.Part.Lo; in AcpiUtDivide() 256 Remainder.Full -= Divisor.Full; in AcpiUtDivide() 262 Remainder.Full -= Divisor.Full; in AcpiUtDivide() 266 Remainder.Full = Remainder.Full - Dividend.Full; in AcpiUtDivide() 267 Remainder.Part.Hi = (UINT32) -((INT32) Remainder.Part.Hi); in AcpiUtDivide() 268 Remainder.Part.Lo = (UINT32) -((INT32) Remainder.Part.Lo); in AcpiUtDivide() [all …]
|
| /NextBSD/contrib/llvm/lib/Support/ |
| HD | APInt.cpp | 1663 APInt *Quotient, APInt *Remainder) in divide() argument 1685 if ((Remainder?4:3)*n+2*m+1 <= 128) { in divide() 1689 if (Remainder) in divide() 1695 if (Remainder) in divide() 1718 if (Remainder) in divide() 1800 if (Remainder) { in divide() 1802 if (Remainder->BitWidth != RHS.BitWidth) { in divide() 1803 if (Remainder->isSingleWord()) in divide() 1804 Remainder->VAL = 0; in divide() 1806 delete [] Remainder->pVal; in divide() [all …]
|
| HD | ScaledNumber.cpp | 70 uint64_t Remainder = Dividend64 % Divisor; in divide32() local 77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
|
| /NextBSD/sys/contrib/dev/acpica/components/executer/ |
| HD | exconvrt.c | 324 UINT32 Remainder; in AcpiExConvertToAscii() local 357 Remainder = 0; in AcpiExConvertToAscii() 366 (void) AcpiUtShortDivide (Digit, 10, &Digit, &Remainder); in AcpiExConvertToAscii() 371 if (Remainder != 0) in AcpiExConvertToAscii() 378 String[k] = (UINT8) (ACPI_ASCII_ZERO + Remainder); in AcpiExConvertToAscii()
|
| HD | exutils.c | 417 UINT32 Remainder; in AcpiExIntegerToString() local 428 (void) AcpiUtShortDivide (Value, 10, &Value, &Remainder); in AcpiExIntegerToString() 429 OutString[Count-1] = (char) ('0' + Remainder);\ in AcpiExIntegerToString()
|
| HD | exregion.c | 87 UINT32 Remainder; in AcpiExSystemMemorySpaceHandler() local 130 (void) AcpiUtShortDivide ((UINT64) Address, Length, NULL, &Remainder); in AcpiExSystemMemorySpaceHandler() 131 if (Remainder != 0) in AcpiExSystemMemorySpaceHandler()
|
| /NextBSD/contrib/llvm/lib/Target/Mips/ |
| HD | Mips16InstrInfo.cpp | 216 int64_t Remainder = FrameSize - Base; in makeFrame() local 218 if (isInt<16>(-Remainder)) in makeFrame() 219 BuildAddiuSpImm(MBB, I, -Remainder); in makeFrame() 221 adjustStackPtrBig(SP, -Remainder, MBB, I, Mips::V0, Mips::V1); in makeFrame() 240 int64_t Remainder = FrameSize - Base; in restoreFrame() local 244 if (isInt<16>(Remainder)) in restoreFrame() 245 BuildAddiuSpImm(MBB, I, Remainder); in restoreFrame() 247 adjustStackPtrBig(SP, Remainder, MBB, I, Mips::A0, Mips::A1); in restoreFrame()
|
| /NextBSD/contrib/llvm/lib/Transforms/Utils/ |
| HD | IntegerDivision.cpp | 91 Value *Remainder = Builder.CreateSub(Dividend, Product); in generatedUnsignedRemainderCode() local 96 return Remainder; in generatedUnsignedRemainderCode() 394 Value *Remainder = generateSignedRemainderCode(Rem->getOperand(0), in expandRemainder() local 397 Rem->replaceAllUsesWith(Remainder); in expandRemainder() 411 Value *Remainder = generatedUnsignedRemainderCode(Rem->getOperand(0), in expandRemainder() local 415 Rem->replaceAllUsesWith(Remainder); in expandRemainder()
|
| HD | BypassSlowDivision.cpp | 40 PHINode *Remainder; member 43 : Quotient(InQuotient), Remainder(InRemainder) {} in DivPhiNodes() 210 J->replaceAllUsesWith(Value.Remainder); in reuseOrInsertFastDiv()
|
| /NextBSD/contrib/llvm/lib/Transforms/Scalar/ |
| HD | LoopStrengthReduce.cpp | 3185 const SCEV *Remainder = CollectSubexprs(S, C, Ops, L, SE, Depth+1); in CollectSubexprs() local 3186 if (Remainder) in CollectSubexprs() 3187 Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder); in CollectSubexprs() 3195 const SCEV *Remainder = CollectSubexprs(AR->getStart(), in CollectSubexprs() local 3199 if (Remainder && (AR->getLoop() == L || !isa<SCEVAddRecExpr>(Remainder))) { in CollectSubexprs() 3200 Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder); in CollectSubexprs() 3201 Remainder = nullptr; in CollectSubexprs() 3203 if (Remainder != AR->getStart()) { in CollectSubexprs() 3204 if (!Remainder) in CollectSubexprs() 3205 Remainder = SE.getConstant(AR->getType(), 0); in CollectSubexprs() [all …]
|
| /NextBSD/contrib/llvm/lib/Analysis/ |
| HD | DependenceAnalysis.cpp | 1120 APInt Remainder = ConstDelta; in strongSIVtest() local 1121 APInt::sdivrem(ConstDelta, ConstCoeff, Distance, Remainder); in strongSIVtest() 1123 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in strongSIVtest() 1125 if (Remainder != 0) { in strongSIVtest() 1314 APInt Remainder = APDelta; in weakCrossingSIVtest() local 1315 APInt::sdivrem(APDelta, APCoeff, Distance, Remainder); in weakCrossingSIVtest() 1316 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in weakCrossingSIVtest() 1317 if (Remainder != 0) { in weakCrossingSIVtest() 1327 Remainder = Distance.srem(Two); in weakCrossingSIVtest() 1328 DEBUG(dbgs() << "\t Remainder = " << Remainder << "\n"); in weakCrossingSIVtest() [all …]
|
| HD | ScalarEvolutionExpander.cpp | 211 static bool FactorOutConstant(const SCEV *&S, const SCEV *&Remainder, in FactorOutConstant() argument 241 Remainder = in FactorOutConstant() 242 SE.getAddExpr(Remainder, in FactorOutConstant() 275 if (!FactorOutConstant(Start, Remainder, Factor, SE, DL)) in FactorOutConstant() 407 const SCEV *Remainder = SE.getConstant(Ty, 0); in expandAddToGEP() local 408 if (FactorOutConstant(Op, Remainder, ElSize, SE, DL)) { in expandAddToGEP() 411 if (!Remainder->isZero()) in expandAddToGEP() 412 NewOps.push_back(Remainder); in expandAddToGEP()
|
| HD | ScalarEvolution.cpp | 710 const SCEV **Remainder) { in divide() 719 *Remainder = D.Zero; in divide() 725 *Remainder = D.Zero; in divide() 732 *Remainder = D.Zero; in divide() 748 *Remainder = Numerator; in divide() 752 *Remainder = D.Zero; in divide() 758 *Remainder = D.Remainder; in divide() 788 Remainder = SE.getConstant(RemainderVal); in visitConstant() 803 Remainder = Numerator; in visitAddRecExpr() 808 Remainder = SE.getAddRecExpr(StartR, StepR, Numerator->getLoop(), in visitAddRecExpr() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/ADT/ |
| HD | BitVector.h | 143 if (unsigned Remainder = Size % BITWORD_SIZE) in all() local 144 return Bits[Size / BITWORD_SIZE] == (1UL << Remainder) - 1; in all()
|
| HD | APInt.h | 181 unsigned rhsWords, APInt *Quotient, APInt *Remainder); 942 APInt &Remainder); 945 APInt &Remainder);
|
| /NextBSD/sys/dev/pms/RefTisa/tisa/sassata/sata/host/ |
| HD | sat.c | 1673 bit32 Remainder = 0; in satRead_1() local 1707 Remainder = satOrgIOContext->OrgTL % DenomTL; in satRead_1() 1737 fis->d.sectorCount = (bit8)Remainder; /* FIS sector count (7:0) */ in satRead_1() 1769 fis->d.sectorCount = (bit8)Remainder; /* FIS sector count (7:0) */ in satRead_1() 1799 fis->d.sectorCount = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */ in satRead_1() 1800 fis->d.sectorCountExp = (bit8)((Remainder & 0xFF00) >> 8); /* FIS sector count (15:8) */ in satRead_1() 1831 fis->d.sectorCount = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */ in satRead_1() 1832 fis->d.sectorCountExp = (bit8)((Remainder & 0xFF00) >> 8); /* FIS sector count (15:8) */ in satRead_1() 1865 fis->h.features = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */ in satRead_1() 1866 fis->d.featuresExp = (bit8)((Remainder & 0xFF00) >> 8); /* FIS sector count (15:8) */ in satRead_1() [all …]
|
| /NextBSD/sys/dev/pms/RefTisa/sat/src/ |
| HD | smsat.c | 17095 bit32 Remainder = 0; in smsatRead_1() local 17129 Remainder = satOrgIOContext->OrgTL % DenomTL; in smsatRead_1() 17158 fis->d.sectorCount = (bit8)Remainder; /* FIS sector count (7:0) */ in smsatRead_1() 17190 fis->d.sectorCount = (bit8)Remainder; /* FIS sector count (7:0) */ in smsatRead_1() 17220 fis->d.sectorCount = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */ in smsatRead_1() 17221 fis->d.sectorCountExp = (bit8)((Remainder & 0xFF00) >> 8); /* FIS sector count (15:8) */ in smsatRead_1() 17252 fis->d.sectorCount = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */ in smsatRead_1() 17253 fis->d.sectorCountExp = (bit8)((Remainder & 0xFF00) >> 8); /* FIS sector count (15:8) */ in smsatRead_1() 17286 fis->h.features = (bit8)(Remainder & 0xFF); /* FIS sector count (7:0) */ in smsatRead_1() 17287 fis->d.featuresExp = (bit8)((Remainder & 0xFF00) >> 8); /* FIS sector count (15:8) */ in smsatRead_1() [all …]
|
| /NextBSD/contrib/llvm/lib/Transforms/InstCombine/ |
| HD | InstCombineMulDivRem.cpp | 98 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned); in IsMultiple() local 100 APInt::sdivrem(C1, C2, Quotient, Remainder); in IsMultiple() 102 APInt::udivrem(C1, C2, Quotient, Remainder); in IsMultiple() 104 return Remainder.isMinValue(); in IsMultiple()
|
| HD | InstructionCombining.cpp | 1022 APInt Quotient(Scale), Remainder(Scale); // Init ensures right bitwidth. in Descale() local 1023 APInt::sdivrem(CI->getValue(), Scale, Quotient, Remainder); in Descale() 1024 if (!Remainder.isMinValue()) in Descale()
|
| /NextBSD/contrib/llvm/lib/Target/PowerPC/ |
| HD | PPCISelDAGToDAG.cpp | 541 unsigned Remainder = 0; in SelectInt64CountDirect() local 556 Remainder = Imm; in SelectInt64CountDirect() 589 if ((Hi = (Remainder >> 16) & 0xFFFF)) in SelectInt64CountDirect() 591 if ((Lo = Remainder & 0xFFFF)) in SelectInt64CountDirect() 630 unsigned Remainder = 0; in SelectInt64Direct() local 645 Remainder = Imm; in SelectInt64Direct() 690 if ((Hi = (Remainder >> 16) & 0xFFFF)) { in SelectInt64Direct() 694 if ((Lo = Remainder & 0xFFFF)) { in SelectInt64Direct()
|
| HD | PPCFastISel.cpp | 2033 unsigned Remainder = 0; in PPCMaterialize64BitInt() local 2045 Remainder = Imm; in PPCMaterialize64BitInt() 2068 if ((Hi = (Remainder >> 16) & 0xFFFF)) { in PPCMaterialize64BitInt() 2075 if ((Lo = Remainder & 0xFFFF)) { in PPCMaterialize64BitInt()
|
| /NextBSD/contrib/gcc/config/sparc/ |
| HD | lb1spl.asm | 245 mov %o3,%o0 ! Remainder is in %o3.
|
| /NextBSD/lib/libc/softfloat/ |
| HD | softfloat.txt | 56 Remainder Functions 263 Remainder Functions
|
| /NextBSD/contrib/compiler-rt/lib/builtins/sparc64/ |
| HD | divmod.m4 | 6 * Division/Remainder
|
| /NextBSD/contrib/llvm/lib/Target/AMDGPU/ |
| HD | AMDGPUISelLowering.cpp | 1819 SDValue Remainder = DAG.getNode(ISD::SUB, DL, VT, Num, Num_S_Remainder); in LowerUDIVREM() local 1822 SDValue Remainder_GE_Den = DAG.getSelectCC(DL, Remainder, Den, in LowerUDIVREM() 1857 SDValue Remainder_S_Den = DAG.getNode(ISD::SUB, DL, VT, Remainder, Den); in LowerUDIVREM() 1860 SDValue Remainder_A_Den = DAG.getNode(ISD::ADD, DL, VT, Remainder, Den); in LowerUDIVREM() 1864 Remainder, Remainder_S_Den, ISD::SETEQ); in LowerUDIVREM()
|