/external/llvm/include/llvm/Bitcode/ |
BitstreamReader.h | 345 uint32_t Read(unsigned NumBits) { 346 assert(NumBits && NumBits <= 32 && 350 if (BitsInCurWord >= NumBits) { 351 uint32_t R = uint32_t(CurWord) & (~0U >> (32-NumBits)); 352 CurWord >>= NumBits; 353 BitsInCurWord -= NumBits; 380 // Extract NumBits-BitsInCurWord from what we just read. 381 unsigned BitsLeft = NumBits-BitsInCurWord; 397 uint64_t Read64(unsigned NumBits) { [all...] |
BitstreamWriter.h | 121 void Emit(uint32_t Val, unsigned NumBits) { 122 assert(NumBits && NumBits <= 32 && "Invalid value size!"); 123 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); 125 if (CurBit + NumBits < 32) { 126 CurBit += NumBits; 137 CurBit = (CurBit+NumBits) & 31; 140 void Emit64(uint64_t Val, unsigned NumBits) { 141 if (NumBits <= 32) 142 Emit((uint32_t)Val, NumBits); [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineShifts.cpp | 68 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, 84 if (CI->getZExtValue() == NumBits) { 112 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC) && 113 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC); 124 if (CI->getValue() == NumBits) return true; 130 if (CI->getZExtValue() > NumBits) { 133 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) 148 if (CI->getValue() == NumBits) return true; 154 if (CI->getValue().ult(TypeWidth) && CI->getZExtValue() > NumBits) { 155 unsigned LowBits = CI->getZExtValue() - NumBits; [all...] |
/external/llvm/lib/Target/ARM/ |
Thumb1RegisterInfo.cpp | 144 unsigned NumBits, unsigned Scale) { 146 unsigned Chunk = ((1 << NumBits) - 1) * Scale; 152 NumBits = 8; 154 Chunk = ((1 << NumBits) - 1) * Scale; 180 unsigned NumBits = 1; 188 NumBits = 7; 201 NumBits = 8; 210 NumBits = 8; 214 NumBits = 7; 218 NumBits = 8 [all...] |
ARMBaseRegisterInfo.cpp | 632 unsigned NumBits = 0; 642 NumBits = 8; 645 NumBits = 12; 650 NumBits = 8; 655 NumBits = 12; 658 NumBits = 8; 661 NumBits = 5; 678 unsigned Mask = (1 << NumBits) - 1;
|
Thumb2InstrInfo.cpp | 522 unsigned NumBits = 0; 531 NumBits = 8; 536 NumBits = 12; 544 NumBits = 8; 554 NumBits = 8; 573 unsigned Mask = (1 << NumBits) - 1; 580 ImmedOffset |= 1 << NumBits; 594 ImmedOffset |= 1 << NumBits;
|
/external/lzma/Java/SevenZip/ |
LzmaBench.java | 30 int NumBits;
34 NumBits = 0;
36 public int GetRnd(int numBits)
39 if (NumBits > numBits)
41 result = Value & ((1 << numBits) - 1);
42 Value >>>= numBits;
43 NumBits -= numBits;
46 numBits -= NumBits; [all...] |
/external/llvm/include/llvm/IR/ |
DerivedTypes.h | 41 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ 42 setSubclassData(NumBits); 54 /// If an IntegerType with the same NumBits value was previously instantiated, 56 /// one instance with a given NumBits value is ever created. 58 static IntegerType *get(LLVMContext &C, unsigned NumBits);
|
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
LzmaBench.cs | 35 int NumBits;
39 NumBits = 0;
41 public UInt32 GetRnd(int numBits)
44 if (NumBits > numBits)
46 result = Value & (((UInt32)1 << numBits) - 1);
47 Value >>= numBits;
48 NumBits -= numBits;
51 numBits -= NumBits; [all...] |
/external/llvm/tools/llvm-bcanalyzer/ |
llvm-bcanalyzer.cpp | 291 /// NumBits - The total size in bits of all of these blocks. 292 uint64_t NumBits; 308 : NumInstances(0), NumBits(0), 340 BlockStats.NumBits += BlockBitEnd-BlockBitStart; 380 BlockStats.NumBits += BlockBitEnd-BlockBitStart; 562 PrintSize(Stats.NumBits); 564 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; 568 PrintSize(Stats.NumBits/(double)Stats.NumInstances);
|
/external/llvm/utils/TableGen/ |
AsmWriterEmitter.cpp | 383 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size()); 386 if (NumBits > BitsLeft) { 387 DEBUG(errs() << "Not enough bits to densely encode " << NumBits 397 BitsLeft -= NumBits; 470 unsigned NumBits = Log2_32_Ceil(Commands.size()); 471 assert(NumBits <= BitsLeft && "consistency error"); 474 O << "\n // Fragment " << i << " encoded into " << NumBits 481 << ((1 << NumBits)-1) << ") {\n" 492 << ((1 << NumBits)-1) << ") {\n" 503 BitsLeft -= NumBits; [all...] |
FixedLenDecoderEmitter.cpp | 224 unsigned NumBits; // number of bits to filter 257 Filter(FilterChooser &owner, unsigned startBit, unsigned numBits, bool mixed); 404 unsigned NumBits) const; 495 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), 502 Filter::Filter(FilterChooser &owner, unsigned startBit, unsigned numBits, 504 : Owner(&owner), StartBit(startBit), NumBits(numBits), Mixed(mixed) { 505 assert(StartBit + NumBits - 1 < Owner->BitWidth); 518 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits); [all...] |
/external/llvm/lib/Target/Hexagon/ |
HexagonAsmPrinter.cpp | 64 void HexagonAsmPrinter::EmitAlignment(unsigned NumBits, 72 AsmPrinter::EmitAlignment(NumBits, GV);
|
HexagonAsmPrinter.h | 40 virtual void EmitAlignment(unsigned NumBits,
|
/external/clang/lib/Lex/ |
PPExpressions.cpp | 293 unsigned NumBits; 295 NumBits = TI.getIntWidth(); 297 NumBits = TI.getWCharWidth(); 299 NumBits = TI.getChar16Width(); 301 NumBits = TI.getChar32Width(); 303 NumBits = TI.getCharWidth(); 306 llvm::APSInt Val(NumBits);
|
/external/llvm/include/llvm/ADT/ |
BitVector.h | 120 unsigned NumBits = 0; 123 NumBits += CountPopulation_32((uint32_t)Bits[i]); 125 NumBits += CountPopulation_64(Bits[i]); 128 return NumBits;
|
SparseBitVector.h | 124 unsigned NumBits = 0; 127 NumBits += CountPopulation_32(Bits[i]); 129 NumBits += CountPopulation_64(Bits[i]); 132 return NumBits;
|
/external/llvm/lib/IR/ |
Type.cpp | 305 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { 306 assert(NumBits >= MIN_INT_BITS && "bitwidth too small"); 307 assert(NumBits <= MAX_INT_BITS && "bitwidth too large"); 310 switch (NumBits) { 320 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits]; 323 Entry = new (C.pImpl->TypeAllocator) IntegerType(C, NumBits);
|
DataLayout.cpp | 618 unsigned NumBits = getTypeSizeInBits(Ty->getScalarType()); 619 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits);
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
AsmPrinter.cpp | 74 unsigned NumBits = 0; 76 NumBits = TD.getPreferredAlignmentLog(GVar); 79 if (InBits > NumBits) 80 NumBits = InBits; 84 return NumBits; 88 // If the GVAlign is larger than NumBits, or if we are required to obey 89 // NumBits because the GV has an assigned section, obey it. 90 if (GVAlign > NumBits || GV->hasSection()) 91 NumBits = GVAlign; 92 return NumBits; [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
BitSet.cs | 260 public int NumBits() {
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
BitSet.cs | 307 public int NumBits()
|
/external/llvm/include/llvm/CodeGen/ |
AsmPrinter.h | 231 void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const;
|
/external/llvm/lib/AsmParser/ |
LLLexer.cpp | 453 uint64_t NumBits = atoull(StartChar, CurPtr); 454 if (NumBits < IntegerType::MIN_INT_BITS || 455 NumBits > IntegerType::MAX_INT_BITS) { 459 TyVal = IntegerType::get(Context, NumBits); 822 uint32_t numBits = ((Len * 64) / 19) + 2; 823 APInt Tmp(numBits, StringRef(TokStart, Len), 10); 826 if (minBits > 0 && minBits < numBits) 831 if (activeBits > 0 && activeBits < numBits)
|
/external/llvm/lib/Target/NVPTX/ |
NVPTXAsmPrinter.h | 198 void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const {}
|