/external/llvm/include/llvm/Bitcode/ |
D | BitstreamReader.h | 337 word_t Read(unsigned NumBits) { in Read() argument 340 assert(NumBits && NumBits <= BitsInWord && in Read() 346 if (BitsInCurWord >= NumBits) { in Read() 347 word_t R = CurWord & (~word_t(0) >> (BitsInWord - NumBits)); in Read() 350 CurWord >>= (NumBits & Mask); in Read() 352 BitsInCurWord -= NumBits; in Read() 357 unsigned BitsLeft = NumBits - BitsInCurWord; in Read() 372 R |= R2 << (NumBits - BitsLeft); in Read() 377 uint32_t ReadVBR(unsigned NumBits) { in ReadVBR() argument 378 uint32_t Piece = Read(NumBits); in ReadVBR() [all …]
|
D | BitstreamWriter.h | 111 void Emit(uint32_t Val, unsigned NumBits) { in Emit() argument 112 assert(NumBits && NumBits <= 32 && "Invalid value size!"); in Emit() 113 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); in Emit() 115 if (CurBit + NumBits < 32) { in Emit() 116 CurBit += NumBits; in Emit() 127 CurBit = (CurBit+NumBits) & 31; in Emit() 130 void Emit64(uint64_t Val, unsigned NumBits) { in Emit64() argument 131 if (NumBits <= 32) in Emit64() 132 Emit((uint32_t)Val, NumBits); in Emit64() 135 Emit((uint32_t)(Val >> 32), NumBits-32); in Emit64() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 70 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, in CanEvaluateShifted() argument 86 if (CI->getZExtValue() == NumBits) { in CanEvaluateShifted() 114 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC, I) && in CanEvaluateShifted() 115 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC, I); in CanEvaluateShifted() 126 if (CI->getValue() == NumBits) return true; in CanEvaluateShifted() 132 if (CI->getZExtValue() > NumBits) { in CanEvaluateShifted() 135 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits, in CanEvaluateShifted() 151 if (CI->getValue() == NumBits) return true; in CanEvaluateShifted() 157 if (CI->getValue().ult(TypeWidth) && CI->getZExtValue() > NumBits) { in CanEvaluateShifted() 158 unsigned LowBits = CI->getZExtValue() - NumBits; in CanEvaluateShifted() [all …]
|
/external/lzma/Java/SevenZip/ |
D | LzmaBench.java | 30 int NumBits; field in LzmaBench.CBitRandomGenerator 34 NumBits = 0; in Init() 39 if (NumBits > numBits) in GetRnd() 43 NumBits -= numBits; in GetRnd() 46 numBits -= NumBits; in GetRnd() 51 NumBits = 32 - numBits; in GetRnd()
|
/external/llvm/lib/Target/X86/ |
D | X86TargetObjectFile.cpp | 163 uint64_t NumBits = VTy->getBitWidth(); in getSectionForConstant() local 164 if (NumBits == 128 || NumBits == 256) { in getSectionForConstant() 165 COMDATSymName = NumBits == 128 ? "__xmm@" : "__ymm@"; in getSectionForConstant()
|
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
D | LzmaBench.cs | 35 int NumBits; field in SevenZip.LzmaBench.CBitRandomGenerator 39 NumBits = 0; in Init() 44 if (NumBits > numBits) in GetRnd() 48 NumBits -= numBits; in GetRnd() 51 numBits -= NumBits; in GetRnd() 56 NumBits = 32 - numBits; in GetRnd()
|
/external/skia/src/gpu/ |
D | GrPath.cpp | 10 template<int NumBits> static uint64_t get_top_n_float_bits(float f) { in get_top_n_float_bits() 13 return floatBits >> (32 - NumBits); in get_top_n_float_bits()
|
/external/llvm/tools/llvm-bcanalyzer/ |
D | llvm-bcanalyzer.cpp | 301 uint64_t NumBits; member 317 : NumInstances(0), NumBits(0), in PerBlockIDStats() 349 BlockStats.NumBits += BlockBitEnd-BlockBitStart; in ParseBlock() 390 BlockStats.NumBits += BlockBitEnd-BlockBitStart; in ParseBlock() 619 PrintSize(Stats.NumBits); in AnalyzeBitcode() 621 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; in AnalyzeBitcode() 625 PrintSize(Stats.NumBits/(double)Stats.NumInstances); in AnalyzeBitcode()
|
/external/llvm/lib/Target/ARM/ |
D | ARMBaseRegisterInfo.cpp | 635 unsigned NumBits = 0; in isFrameOffsetLegal() local 645 NumBits = 8; in isFrameOffsetLegal() 648 NumBits = 12; in isFrameOffsetLegal() 653 NumBits = 8; in isFrameOffsetLegal() 658 NumBits = 12; in isFrameOffsetLegal() 661 NumBits = 8; in isFrameOffsetLegal() 664 NumBits = (BaseReg == ARM::SP ? 8 : 5); in isFrameOffsetLegal() 681 unsigned Mask = (1 << NumBits) - 1; in isFrameOffsetLegal()
|
D | Thumb2InstrInfo.cpp | 544 unsigned NumBits = 0; in rewriteT2FrameIndex() local 553 NumBits = 8; in rewriteT2FrameIndex() 558 NumBits = 12; in rewriteT2FrameIndex() 566 NumBits = 8; in rewriteT2FrameIndex() 576 NumBits = 10; // 8 bits scaled by 4 in rewriteT2FrameIndex() 592 unsigned Mask = (1 << NumBits) - 1; in rewriteT2FrameIndex() 599 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex() 613 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex()
|
D | ThumbRegisterInfo.cpp | 380 unsigned NumBits = (FrameReg == ARM::SP) ? 8 : 5; in rewriteFrameIndex() local 389 unsigned Mask = (1 << NumBits) - 1; in rewriteFrameIndex() 405 NumBits = 5; in rewriteFrameIndex() 406 Mask = (1 << NumBits) - 1; in rewriteFrameIndex()
|
/external/llvm/utils/TableGen/ |
D | AsmWriterEmitter.cpp | 363 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size()); in EmitPrintInstruction() local 366 if (NumBits > BitsLeft) { in EmitPrintInstruction() 367 DEBUG(errs() << "Not enough bits to densely encode " << NumBits in EmitPrintInstruction() 377 BitsLeft -= NumBits; in EmitPrintInstruction() 450 unsigned NumBits = Log2_32_Ceil(Commands.size()); in EmitPrintInstruction() local 451 assert(NumBits <= BitsLeft && "consistency error"); in EmitPrintInstruction() 454 O << "\n // Fragment " << i << " encoded into " << NumBits in EmitPrintInstruction() 461 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction() 472 << ((1 << NumBits)-1) << ") {\n" in EmitPrintInstruction() 483 BitsLeft -= NumBits; in EmitPrintInstruction()
|
D | FixedLenDecoderEmitter.cpp | 223 unsigned NumBits; // number of bits to filter member in __anonf641aa1c0511::Filter 397 unsigned NumBits) const; 488 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), in Filter() 497 : Owner(&owner), StartBit(startBit), NumBits(numBits), Mixed(mixed) { in Filter() 498 assert(StartBit + NumBits - 1 < Owner->BitWidth); in Filter() 511 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits); in Filter() 545 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) in recurse() 568 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) { in recurse() 610 TableInfo.Table.push_back(NumBits); in emitTableEntry() 901 unsigned StartBit, unsigned NumBits) const { in fieldFromInsn() [all …]
|
/external/clang/lib/Lex/ |
D | PPExpressions.cpp | 296 unsigned NumBits; in EvaluateValue() local 298 NumBits = TI.getIntWidth(); in EvaluateValue() 300 NumBits = TI.getWCharWidth(); in EvaluateValue() 302 NumBits = TI.getChar16Width(); in EvaluateValue() 304 NumBits = TI.getChar32Width(); in EvaluateValue() 306 NumBits = TI.getCharWidth(); in EvaluateValue() 309 llvm::APSInt Val(NumBits); in EvaluateValue()
|
/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 41 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() argument 42 setSubclassData(NumBits); in IntegerType() 58 static IntegerType *get(LLVMContext &C, unsigned NumBits);
|
/external/llvm/lib/IR/ |
D | Type.cpp | 303 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { in get() argument 304 assert(NumBits >= MIN_INT_BITS && "bitwidth too small"); in get() 305 assert(NumBits <= MAX_INT_BITS && "bitwidth too large"); in get() 308 switch (NumBits) { in get() 318 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits]; in get() 321 Entry = new (C.pImpl->TypeAllocator) IntegerType(C, NumBits); in get()
|
D | DataLayout.cpp | 702 unsigned NumBits = getPointerTypeSizeInBits(Ty); in getIntPtrType() local 703 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinter.cpp | 82 unsigned NumBits = 0; in getGVAlignmentLog2() local 84 NumBits = DL.getPreferredAlignmentLog(GVar); in getGVAlignmentLog2() 87 if (InBits > NumBits) in getGVAlignmentLog2() 88 NumBits = InBits; in getGVAlignmentLog2() 92 return NumBits; in getGVAlignmentLog2() 98 if (GVAlign > NumBits || GV->hasSection()) in getGVAlignmentLog2() 99 NumBits = GVAlign; in getGVAlignmentLog2() 100 return NumBits; in getGVAlignmentLog2() 1638 void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalObject *GV) const { in EmitAlignment() argument 1640 NumBits = getGVAlignmentLog2(GV, *TM.getDataLayout(), in EmitAlignment() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | BitVector.h | 122 unsigned NumBits = 0; in count() local 124 NumBits += countPopulation(Bits[i]); in count() 125 return NumBits; in count()
|
D | SparseBitVector.h | 125 unsigned NumBits = 0; 127 NumBits += countPopulation(Bits[i]); 128 return NumBits;
|
/external/llvm/lib/AsmParser/ |
D | LLLexer.cpp | 476 uint64_t NumBits = atoull(StartChar, CurPtr); in LexIdentifier() local 477 if (NumBits < IntegerType::MIN_INT_BITS || in LexIdentifier() 478 NumBits > IntegerType::MAX_INT_BITS) { in LexIdentifier() 482 TyVal = IntegerType::get(Context, NumBits); in LexIdentifier()
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | BitSet.cs | 260 public int NumBits() { in NumBits() method in Antlr.Runtime.BitSet
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | BitSet.cs | 307 public int NumBits() in NumBits() method in Antlr.Runtime.BitSet
|
/external/llvm/include/llvm/CodeGen/ |
D | AsmPrinter.h | 249 void EmitAlignment(unsigned NumBits, const GlobalObject *GO = nullptr) const;
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 560 unsigned NumBits = Ty->getPrimitiveSizeInBits(); in ConstantFoldLoadFromConstPtr() local 563 if ((NumBits >> 3) == StrLen + 1 && (NumBits & 7) == 0 && in ConstantFoldLoadFromConstPtr() 565 APInt StrVal(NumBits, 0); in ConstantFoldLoadFromConstPtr() 566 APInt SingleChar(NumBits, 0); in ConstantFoldLoadFromConstPtr()
|