Searched refs:NumBits (Results 1 - 25 of 42) sorted by relevance

12

/external/llvm/include/llvm/Bitcode/
H A DBitstreamReader.h344 uint32_t Read(unsigned NumBits) { argument
345 assert(NumBits && NumBits <= 32 &&
349 if (BitsInCurWord >= NumBits) {
350 uint32_t R = uint32_t(CurWord) & (~0U >> (32-NumBits));
351 CurWord >>= NumBits; local
352 BitsInCurWord -= NumBits;
379 // Extract NumBits-BitsInCurWord from what we just read.
380 unsigned BitsLeft = NumBits-BitsInCurWord;
396 uint64_t Read64(unsigned NumBits) { argument
403 ReadVBR(unsigned NumBits) argument
423 ReadVBR64(unsigned NumBits) argument
[all...]
H A DBitstreamWriter.h121 void Emit(uint32_t Val, unsigned NumBits) { argument
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) { argument
141 if (NumBits <= 32)
142 Emit((uint32_t)Val, NumBits);
157 EmitVBR(uint32_t Val, unsigned NumBits) argument
170 EmitVBR64(uint64_t Val, unsigned NumBits) argument
[all...]
/external/chromium_org/third_party/skia/src/gpu/
H A DGrPath.cpp10 template<int NumBits> static uint64_t get_top_n_float_bits(float f) {
13 return floatBits >> (32 - NumBits);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp70 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, argument
86 if (CI->getZExtValue() == NumBits) {
114 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC) &&
115 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC);
126 if (CI->getValue() == NumBits) return true;
132 if (CI->getZExtValue() > NumBits) {
135 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits))
150 if (CI->getValue() == NumBits) return true;
156 if (CI->getValue().ult(TypeWidth) && CI->getZExtValue() > NumBits) {
157 unsigned LowBits = CI->getZExtValue() - NumBits;
185 GetShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, InstCombiner &IC) argument
[all...]
/external/llvm/lib/Target/ARM/
H A DThumb1RegisterInfo.cpp142 unsigned NumBits, unsigned Scale) {
144 unsigned Chunk = ((1 << NumBits) - 1) * Scale;
150 NumBits = 8;
152 Chunk = ((1 << NumBits) - 1) * Scale;
178 unsigned NumBits = 1;
186 NumBits = 7;
199 NumBits = 8;
208 NumBits = 8;
212 NumBits = 7;
216 NumBits
141 calcNumMI(int Opc, int ExtraOpc, unsigned Bytes, unsigned NumBits, unsigned Scale) argument
442 unsigned NumBits = (FrameReg == ARM::SP) ? 8 : 5; variable
[all...]
H A DARMBaseRegisterInfo.cpp648 unsigned NumBits = 0; local
658 NumBits = 8;
661 NumBits = 12;
666 NumBits = 8;
671 NumBits = 12;
674 NumBits = 8;
677 NumBits = 5;
694 unsigned Mask = (1 << NumBits) - 1;
H A DThumb2InstrInfo.cpp536 unsigned NumBits = 0;
545 NumBits = 8;
550 NumBits = 12;
558 NumBits = 8;
568 NumBits = 8;
587 unsigned Mask = (1 << NumBits) - 1;
594 ImmedOffset |= 1 << NumBits;
608 ImmedOffset |= 1 << NumBits;
/external/lzma/CS/7zip/Compress/LzmaAlone/
H A DLzmaBench.cs35 int NumBits; field in class:SevenZip.LzmaBench.CBitRandomGenerator
39 NumBits = 0;
44 if (NumBits > numBits)
48 NumBits -= numBits;
51 numBits -= NumBits;
56 NumBits = 32 - numBits;
/external/lzma/Java/SevenZip/
H A DLzmaBench.java30 int NumBits; field in class:LzmaBench.CBitRandomGenerator
34 NumBits = 0;
39 if (NumBits > numBits)
43 NumBits -= numBits;
46 numBits -= NumBits;
51 NumBits = 32 - numBits;
/external/llvm/tools/llvm-bcanalyzer/
H A Dllvm-bcanalyzer.cpp291 /// NumBits - The total size in bits of all of these blocks.
292 uint64_t NumBits; member in struct:PerBlockIDStats
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/
H A DAsmWriterEmitter.cpp367 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size()); local
370 if (NumBits > BitsLeft) {
371 DEBUG(errs() << "Not enough bits to densely encode " << NumBits
381 BitsLeft -= NumBits;
454 unsigned NumBits = Log2_32_Ceil(Commands.size()); local
455 assert(NumBits <= BitsLeft && "consistency error");
458 O << "\n // Fragment " << i << " encoded into " << NumBits
465 << ((1 << NumBits)-1) << ") {\n"
476 << ((1 << NumBits)-1) << ") {\n"
487 BitsLeft -= NumBits;
[all...]
H A DFixedLenDecoderEmitter.cpp223 unsigned NumBits; // number of bits to filter member in class:__anon26596::Filter
403 unsigned NumBits) const;
494 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed),
503 : Owner(&owner), StartBit(startBit), NumBits(numBits), Mixed(mixed) {
504 assert(StartBit + NumBits - 1 < Owner->BitWidth);
517 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits);
559 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex)
588 for (unsigned bitIndex = 0; bitIndex < NumBits; ++bitIndex) {
634 TableInfo.Table.push_back(NumBits);
[all...]
/external/llvm/include/llvm/IR/
H A DDerivedTypes.h41 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ argument
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/clang/lib/Lex/
H A DPPExpressions.cpp293 unsigned NumBits; local
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/
H A DBitVector.h119 unsigned NumBits = 0; local
122 NumBits += CountPopulation_32((uint32_t)Bits[i]);
124 NumBits += CountPopulation_64(Bits[i]);
127 return NumBits;
H A DSparseBitVector.h125 unsigned NumBits = 0;
128 NumBits += CountPopulation_32(Bits[i]);
130 NumBits += CountPopulation_64(Bits[i]);
133 return NumBits;
/external/llvm/lib/IR/
H A DType.cpp299 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { argument
300 assert(NumBits >= MIN_INT_BITS && "bitwidth too small");
301 assert(NumBits <= MAX_INT_BITS && "bitwidth too large");
304 switch (NumBits) {
314 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits];
317 Entry = new (C.pImpl->TypeAllocator) IntegerType(C, NumBits);
H A DDataLayout.cpp711 unsigned NumBits = getPointerTypeSizeInBits(Ty);
712 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits);
/external/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp79 unsigned NumBits = 0; local
81 NumBits = TD.getPreferredAlignmentLog(GVar);
84 if (InBits > NumBits)
85 NumBits = InBits;
89 return NumBits;
93 // If the GVAlign is larger than NumBits, or if we are required to obey
94 // NumBits because the GV has an assigned section, obey it.
95 if (GVAlign > NumBits || GV->hasSection())
96 NumBits = GVAlign;
97 return NumBits;
1533 EmitAlignment(unsigned NumBits, const GlobalObject *GV) const argument
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
H A DBitSet.cs260 public int NumBits() { method in class:Antlr.Runtime.BitSet
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
H A DBitSet.cs307 public int NumBits() method in class:Antlr.Runtime.BitSet
/external/llvm/include/llvm/CodeGen/
H A DAsmPrinter.h235 void EmitAlignment(unsigned NumBits, const GlobalObject *GO = nullptr) const;
/external/llvm/lib/AsmParser/
H A DLLLexer.cpp492 uint64_t NumBits = atoull(StartChar, CurPtr); local
493 if (NumBits < IntegerType::MIN_INT_BITS ||
494 NumBits > IntegerType::MAX_INT_BITS) {
498 TyVal = IntegerType::get(Context, NumBits);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.h211 void EmitAlignment(unsigned NumBits, const GlobalValue *GV = nullptr) const {} argument
/external/llvm/lib/Analysis/
H A DConstantFolding.cpp555 unsigned NumBits = Ty->getPrimitiveSizeInBits(); local
558 if ((NumBits >> 3) == StrLen + 1 && (NumBits & 7) == 0 &&
560 APInt StrVal(NumBits, 0);
561 APInt SingleChar(NumBits, 0);

Completed in 3005 milliseconds

12