/external/llvm/include/llvm/Bitcode/ |
D | BitstreamWriter.h | 115 void Emit(uint32_t Val, unsigned NumBits) { in Emit() argument 116 assert(NumBits && NumBits <= 32 && "Invalid value size!"); in Emit() 117 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); in Emit() 119 if (CurBit + NumBits < 32) { in Emit() 120 CurBit += NumBits; in Emit() 131 CurBit = (CurBit+NumBits) & 31; in Emit() 134 void Emit64(uint64_t Val, unsigned NumBits) { in Emit64() argument 135 if (NumBits <= 32) in Emit64() 136 Emit((uint32_t)Val, NumBits); in Emit64() 139 Emit((uint32_t)(Val >> 32), NumBits-32); in Emit64() [all …]
|
D | BitstreamReader.h | 262 word_t Read(unsigned NumBits) { in Read() argument 265 assert(NumBits && NumBits <= BitsInWord && in Read() 271 if (BitsInCurWord >= NumBits) { in Read() 272 word_t R = CurWord & (~word_t(0) >> (BitsInWord - NumBits)); in Read() 275 CurWord >>= (NumBits & Mask); in Read() 277 BitsInCurWord -= NumBits; in Read() 282 unsigned BitsLeft = NumBits - BitsInCurWord; in Read() 297 R |= R2 << (NumBits - BitsLeft); in Read() 302 uint32_t ReadVBR(unsigned NumBits) { in ReadVBR() argument 303 uint32_t Piece = Read(NumBits); in ReadVBR() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Bitcode/ |
D | BitstreamReader.h | 182 word_t Read(unsigned NumBits) { in Read() argument 185 assert(NumBits && NumBits <= BitsInWord && in Read() 191 if (BitsInCurWord >= NumBits) { in Read() 192 word_t R = CurWord & (~word_t(0) >> (BitsInWord - NumBits)); in Read() 195 CurWord >>= (NumBits & Mask); in Read() 197 BitsInCurWord -= NumBits; in Read() 202 unsigned BitsLeft = NumBits - BitsInCurWord; in Read() 217 R |= R2 << (NumBits - BitsLeft); in Read() 222 uint32_t ReadVBR(unsigned NumBits) { in ReadVBR() argument 223 uint32_t Piece = Read(NumBits); in ReadVBR() [all …]
|
D | BitstreamWriter.h | 120 void Emit(uint32_t Val, unsigned NumBits) { in Emit() argument 121 assert(NumBits && NumBits <= 32 && "Invalid value size!"); in Emit() 122 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); in Emit() 124 if (CurBit + NumBits < 32) { in Emit() 125 CurBit += NumBits; in Emit() 136 CurBit = (CurBit+NumBits) & 31; in Emit() 147 void EmitVBR(uint32_t Val, unsigned NumBits) { in EmitVBR() argument 148 assert(NumBits <= 32 && "Too many bits to emit!"); in EmitVBR() 149 uint32_t Threshold = 1U << (NumBits-1); in EmitVBR() 153 Emit((Val & ((1 << (NumBits-1))-1)) | (1 << (NumBits-1)), NumBits); in EmitVBR() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Bitcode/ |
D | BitstreamWriter.h | 90 void Emit(uint32_t Val, unsigned NumBits) { in Emit() argument 91 assert(NumBits && NumBits <= 32 && "Invalid value size!"); in Emit() 92 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); in Emit() 94 if (CurBit + NumBits < 32) { in Emit() 95 CurBit += NumBits; in Emit() 110 CurBit = (CurBit+NumBits) & 31; in Emit() 113 void Emit64(uint64_t Val, unsigned NumBits) { in Emit64() argument 114 if (NumBits <= 32) in Emit64() 115 Emit((uint32_t)Val, NumBits); in Emit64() 118 Emit((uint32_t)(Val >> 32), NumBits-32); in Emit64() [all …]
|
D | BitstreamReader.h | 264 uint32_t Read(unsigned NumBits) { in Read() argument 265 assert(NumBits <= 32 && "Cannot return more than 32 bits!"); in Read() 267 if (BitsInCurWord >= NumBits) { in Read() 268 uint32_t R = CurWord & ((1U << NumBits)-1); in Read() 269 CurWord >>= NumBits; in Read() 270 BitsInCurWord -= NumBits; in Read() 289 unsigned BitsLeft = NumBits-BitsInCurWord; in Read() 303 uint64_t Read64(unsigned NumBits) { in Read64() argument 304 if (NumBits <= 32) return Read(NumBits); in Read64() 307 return V | (uint64_t)Read(NumBits-32) << 32; in Read64() [all …]
|
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/ |
D | NaClBitstreamReader.h | 536 return BlockScope.back().getCodeAbbrev().NumBits; in getAbbrevIDWidth() 681 word_t Read(unsigned NumBits) { in Read() argument 684 assert(NumBits && NumBits <= BitsInWord && in Read() 690 if (BitsInCurWord >= NumBits) { in Read() 691 word_t R = CurWord & (~word_t(0) >> (BitsInWord - NumBits)); in Read() 694 CurWord >>= (NumBits & Mask); in Read() 696 BitsInCurWord -= NumBits; in Read() 701 unsigned BitsLeft = NumBits - BitsInCurWord; in Read() 716 R |= R2 << (NumBits - BitsLeft); in Read() 721 uint32_t ReadVBR(unsigned NumBits) { in ReadVBR() argument [all …]
|
D | NaClBitCodes.h | 393 unsigned NumBits; 397 : IsFixed(IF), NumBits(NB) {} 402 NumBits(NaClBitsNeededForValue(naclbitc::DEFAULT_MAX_ABBREV)) {} 408 NumBits(NaClBitsNeededForValue(MaxAbbrev)) {}
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 68 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, in CanEvaluateShifted() argument 84 if (CI->getZExtValue() == NumBits) { in CanEvaluateShifted() 112 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC) && in CanEvaluateShifted() 113 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC); in CanEvaluateShifted() 124 if (CI->getValue() == NumBits) return true; in CanEvaluateShifted() 130 if (CI->getZExtValue() > NumBits) { in CanEvaluateShifted() 133 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) in CanEvaluateShifted() 148 if (CI->getValue() == NumBits) return true; in CanEvaluateShifted() 154 if (CI->getZExtValue() > NumBits) { in CanEvaluateShifted() 155 unsigned LowBits = CI->getZExtValue() - NumBits; in CanEvaluateShifted() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | Thumb1RegisterInfo.cpp | 143 unsigned NumBits, unsigned Scale) { in calcNumMI() argument 145 unsigned Chunk = ((1 << NumBits) - 1) * Scale; in calcNumMI() 151 NumBits = 8; in calcNumMI() 153 Chunk = ((1 << NumBits) - 1) * Scale; in calcNumMI() 179 unsigned NumBits = 1; in emitThumbRegPlusImmediate() local 187 NumBits = 7; in emitThumbRegPlusImmediate() 200 NumBits = 8; in emitThumbRegPlusImmediate() 209 NumBits = 8; in emitThumbRegPlusImmediate() 213 NumBits = 7; in emitThumbRegPlusImmediate() 217 NumBits = 8; in emitThumbRegPlusImmediate() [all …]
|
D | Thumb2InstrInfo.cpp | 484 unsigned NumBits = 0; in rewriteT2FrameIndex() local 493 NumBits = 8; in rewriteT2FrameIndex() 498 NumBits = 12; in rewriteT2FrameIndex() 506 NumBits = 8; in rewriteT2FrameIndex() 526 unsigned Mask = (1 << NumBits) - 1; in rewriteT2FrameIndex() 533 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex() 547 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 115 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool IsLeftShift, in CanEvaluateShifted() argument 131 if (CI->getZExtValue() == NumBits) { in CanEvaluateShifted() 159 return CanEvaluateShifted(I->getOperand(0), NumBits, IsLeftShift, IC, I) && in CanEvaluateShifted() 160 CanEvaluateShifted(I->getOperand(1), NumBits, IsLeftShift, IC, I); in CanEvaluateShifted() 164 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in CanEvaluateShifted() 170 return CanEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in CanEvaluateShifted() 171 CanEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in CanEvaluateShifted() 179 if (!CanEvaluateShifted(IncValue, NumBits, IsLeftShift, IC, PN)) in CanEvaluateShifted() 188 static Value *GetShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in GetShiftedValue() argument 193 V = IC.Builder->CreateShl(C, NumBits); in GetShiftedValue() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | APSInt.cpp | 25 unsigned NumBits = ((Str.size() * 64) / 19) + 2; in APSInt() local 26 APInt Tmp(NumBits, Str, /*Radix=*/10); in APSInt() 29 if (MinBits > 0 && MinBits < NumBits) in APSInt() 35 if (ActiveBits > 0 && ActiveBits < NumBits) in APSInt()
|
/external/llvm/lib/Support/ |
D | APSInt.cpp | 25 unsigned NumBits = ((Str.size() * 64) / 19) + 2; in APSInt() local 26 APInt Tmp(NumBits, Str, /*Radix=*/10); in APSInt() 29 if (MinBits > 0 && MinBits < NumBits) in APSInt() 35 if (ActiveBits > 0 && ActiveBits < NumBits) in APSInt()
|
/external/llvm/utils/TableGen/ |
D | SearchableTableEmitter.cpp | 75 unsigned NumBits = BI->getNumBits(); in searchableFieldType() local 76 if (NumBits <= 8) in searchableFieldType() 77 NumBits = 8; in searchableFieldType() 78 else if (NumBits <= 16) in searchableFieldType() 79 NumBits = 16; in searchableFieldType() 80 else if (NumBits <= 32) in searchableFieldType() 81 NumBits = 32; in searchableFieldType() 82 else if (NumBits <= 64) in searchableFieldType() 83 NumBits = 64; in searchableFieldType() 86 return "uint" + utostr(NumBits) + "_t"; in searchableFieldType()
|
/external/google-fruit/include/fruit/impl/data_structures/ |
D | semistatic_map.h | 44 using NumBits = unsigned char; variable 50 std::numeric_limits<NumBits>::max() >= sizeof(Unsigned) * CHAR_BIT, 55 NumBits shift; // shift==(sizeof(Unsigned)*CHAR_BIT - num_bits) 62 static NumBits pickNumBits(std::size_t n);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 122 static bool canEvaluateShifted(Value *V, unsigned NumBits, bool IsLeftShift, in canEvaluateShifted() argument 138 if (CI->getValue() == NumBits) { in canEvaluateShifted() 166 return canEvaluateShifted(I->getOperand(0), NumBits, IsLeftShift, IC, I) && in canEvaluateShifted() 167 canEvaluateShifted(I->getOperand(1), NumBits, IsLeftShift, IC, I); in canEvaluateShifted() 171 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in canEvaluateShifted() 177 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted() 178 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted() 186 if (!canEvaluateShifted(IncValue, NumBits, IsLeftShift, IC, PN)) in canEvaluateShifted() 258 static Value *getShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in getShiftedValue() argument 263 V = IC.Builder.CreateShl(C, NumBits); in getShiftedValue() [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/swiftshader/third_party/LLVM/utils/TableGen/ |
D | ARMDecoderEmitter.cpp | 270 unsigned NumBits; // number of bits to filter member in ARMFilter 451 unsigned NumBits) const; 541 Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), in ARMFilter() 549 bool mixed) : Owner(&owner), StartBit(startBit), NumBits(numBits), in ARMFilter() 551 assert(StartBit + NumBits - 1 < BIT_WIDTH); in ARMFilter() 565 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits); in ARMFilter() 611 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) in recurse() 639 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) { in recurse() 662 if (NumBits > 1) in emit() 663 o << (StartBit + NumBits - 1) << '-'; in emit() [all …]
|
D | FixedLenDecoderEmitter.cpp | 130 unsigned NumBits; // number of bits to filter member in Filter 303 unsigned NumBits) const; 379 Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed), in Filter() 387 bool mixed) : Owner(&owner), StartBit(startBit), NumBits(numBits), in Filter() 389 assert(StartBit + NumBits - 1 < Owner->BitWidth); in Filter() 403 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits); in Filter() 448 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) in recurse() 477 for (bitIndex = 0; bitIndex < NumBits; bitIndex++) { in recurse() 501 if (NumBits > 1) in emit() 502 o << (StartBit + NumBits - 1) << '-'; in emit() [all …]
|
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | Thumb2InstrInfo.cpp | 574 unsigned NumBits = 0; in rewriteT2FrameIndex() local 583 NumBits = 8; in rewriteT2FrameIndex() 588 NumBits = 12; in rewriteT2FrameIndex() 596 NumBits = 8; in rewriteT2FrameIndex() 610 NumBits = 8; in rewriteT2FrameIndex() 620 NumBits = 10; // 8 bits scaled by 4 in rewriteT2FrameIndex() 626 NumBits = 8; // 8 bits scaled by 4 in rewriteT2FrameIndex() 641 unsigned Mask = (1 << NumBits) - 1; in rewriteT2FrameIndex() 648 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex() 662 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex()
|
/external/swiftshader/third_party/LLVM/tools/llvm-bcanalyzer/ |
D | llvm-bcanalyzer.cpp | 292 uint64_t NumBits; member 308 : NumInstances(0), NumBits(0), in PerBlockIDStats() 340 BlockStats.NumBits += BlockBitEnd-BlockBitStart; in ParseBlock() 379 BlockStats.NumBits += BlockBitEnd-BlockBitStart; in ParseBlock() 559 PrintSize(Stats.NumBits); in AnalyzeBitcode() 561 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; in AnalyzeBitcode() 565 PrintSize(Stats.NumBits/(double)Stats.NumInstances); in AnalyzeBitcode()
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/ |
D | SearchableTableEmitter.cpp | 156 unsigned NumBits = BI->getNumBits(); in searchableFieldType() local 157 if (NumBits <= 8) in searchableFieldType() 158 NumBits = 8; in searchableFieldType() 159 else if (NumBits <= 16) in searchableFieldType() 160 NumBits = 16; in searchableFieldType() 161 else if (NumBits <= 32) in searchableFieldType() 162 NumBits = 32; in searchableFieldType() 163 else if (NumBits <= 64) in searchableFieldType() 164 NumBits = 64; in searchableFieldType() 168 return "uint" + utostr(NumBits) + "_t"; in searchableFieldType()
|
/external/llvm/lib/Target/ARM/ |
D | Thumb2InstrInfo.cpp | 552 unsigned NumBits = 0; in rewriteT2FrameIndex() local 561 NumBits = 8; in rewriteT2FrameIndex() 566 NumBits = 12; in rewriteT2FrameIndex() 574 NumBits = 8; in rewriteT2FrameIndex() 584 NumBits = 10; // 8 bits scaled by 4 in rewriteT2FrameIndex() 600 unsigned Mask = (1 << NumBits) - 1; in rewriteT2FrameIndex() 607 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex() 621 ImmedOffset |= 1 << NumBits; in rewriteT2FrameIndex()
|