/external/llvm/include/llvm/Bitcode/ |
BitstreamReader.h | 344 uint32_t Read(unsigned NumBits) { 345 assert(NumBits && NumBits <= 32 && 349 if (BitsInCurWord >= NumBits) { 350 uint32_t R = uint32_t(CurWord) & (~0U >> (32-NumBits)); 351 CurWord >>= NumBits; 352 BitsInCurWord -= NumBits; 379 // Extract NumBits-BitsInCurWord from what we just read. 380 unsigned BitsLeft = NumBits-BitsInCurWord; 396 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/chromium_org/third_party/skia/src/gpu/ |
GrPath.cpp | 10 template<int NumBits> static uint64_t get_top_n_float_bits(float f) { 13 return floatBits >> (32 - NumBits);
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineShifts.cpp | 70 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, 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; [all...] |
/external/llvm/lib/Target/ARM/ |
Thumb1RegisterInfo.cpp | 142 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 = 8 [all...] |
ARMBaseRegisterInfo.cpp | 648 unsigned NumBits = 0; 658 NumBits = 8; 661 NumBits = 12; 666 NumBits = 8; 671 NumBits = 12; 674 NumBits = 8; 677 NumBits = 5; 694 unsigned Mask = (1 << NumBits) - 1;
|
Thumb2InstrInfo.cpp | 536 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/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/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 | 367 unsigned NumBits = Log2_32_Ceil(UniqueOperandCommands.size()); 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()); 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...] |
FixedLenDecoderEmitter.cpp | 223 unsigned NumBits; // number of bits to filter 256 Filter(FilterChooser &owner, unsigned startBit, unsigned numBits, bool mixed); 403 unsigned NumBits) const; 494 : Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), 501 Filter::Filter(FilterChooser &owner, unsigned startBit, unsigned numBits, 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); [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);
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
rtmv2.h | 41 USHORT NumBits; 51 #define RTM_IPV4_SET_ADDR_AND_LEN(NetAddress,Addr,Len) (NetAddress)->AddressFamily = AF_INET; (NetAddress)->NumBits = (USHORT) (Len); (*(ULONG *) ((NetAddress)->AddrBits)) = (Addr); 52 #define RTM_IPV4_GET_ADDR_AND_LEN(Addr,Len,NetAddress) (Len) = (NetAddress)->NumBits; (Addr) = (*(ULONG *) ((NetAddress)->AddrBits)); 53 #define RTM_IPV4_SET_ADDR_AND_MASK(NetAddress,Addr,Mask) (NetAddress)->AddressFamily = AF_INET; (*(ULONG *) ((NetAddress)->AddrBits)) = (Addr); RTM_IPV4_LEN_FROM_MASK((NetAddress)->NumBits,Mask) 54 #define RTM_IPV4_GET_ADDR_AND_MASK(Addr,Mask,NetAddress) (Addr) = (*(ULONG *) ((NetAddress)->AddrBits)); (Mask) = RTM_IPV4_MASK_FROM_LEN((NetAddress)->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 | 119 unsigned NumBits = 0; 122 NumBits += CountPopulation_32((uint32_t)Bits[i]); 124 NumBits += CountPopulation_64(Bits[i]); 127 return NumBits;
|
SparseBitVector.h | 125 unsigned NumBits = 0; 128 NumBits += CountPopulation_32(Bits[i]); 130 NumBits += CountPopulation_64(Bits[i]); 133 return NumBits;
|
/external/llvm/lib/IR/ |
Type.cpp | 299 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { 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);
|
DataLayout.cpp | 711 unsigned NumBits = getPointerTypeSizeInBits(Ty); 712 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits);
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
AsmPrinter.cpp | 79 unsigned NumBits = 0; 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; [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 | 235 void EmitAlignment(unsigned NumBits, const GlobalObject *GO = nullptr) const;
|
/external/llvm/lib/AsmParser/ |
LLLexer.cpp | 492 uint64_t NumBits = atoull(StartChar, CurPtr); 493 if (NumBits < IntegerType::MIN_INT_BITS || 494 NumBits > IntegerType::MAX_INT_BITS) { 498 TyVal = IntegerType::get(Context, NumBits); 879 uint32_t numBits = ((Len * 64) / 19) + 2; 880 APInt Tmp(numBits, StringRef(TokStart, Len), 10); 883 if (minBits > 0 && minBits < numBits) 888 if (activeBits > 0 && activeBits < numBits)
|
/external/llvm/lib/Target/NVPTX/ |
NVPTXAsmPrinter.h | 211 void EmitAlignment(unsigned NumBits, const GlobalValue *GV = nullptr) const {}
|