Searched refs:Bits (Results 1 - 25 of 163) sorted by relevance

1234567

/netbsd-current/external/gpl3/gdb.old/dist/gold/testsuite/
H A Doverflow_unittest.cc38 CHECK(! Bits<16>::has_unsigned_overflow(0ULL));
39 CHECK(! Bits<16>::has_unsigned_overflow(1ULL));
40 CHECK(! Bits<16>::has_unsigned_overflow(0x7fffULL));
41 CHECK(! Bits<16>::has_unsigned_overflow(0x8000ULL));
42 CHECK(! Bits<16>::has_unsigned_overflow(0x8001ULL));
43 CHECK(! Bits<16>::has_unsigned_overflow(0xffffULL));
44 CHECK(Bits<16>::has_unsigned_overflow(0x10000ULL));
45 CHECK(Bits<16>::has_unsigned_overflow(0x10001ULL));
46 CHECK(Bits<16>::has_unsigned_overflow(~0ULL));
47 CHECK(Bits<1
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DPackedVector.h30 static T getValue(const BitVectorTy &Bits, unsigned Idx) { argument
33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
37 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { argument
40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i);
47 static T getValue(const BitVectorTy &Bits, unsigned Idx) { argument
50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
51 if (Bits[(Idx << (BitNum-1)) + BitNum-1])
56 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { argument
59 Bits.set((Idx << (BitNum-1)) + BitNum-1);
63 Bits[(Id
77 BitVectorTy Bits; member in class:llvm::PackedVector
[all...]
H A DBitVector.h84 Storage Bits; // Actual bits.
98 WordRef = &b.Bits[Idx / BITWORD_SIZE];
142 : Bits(NumBitWords(s), 0 - (BitWord)t), Size(s) {
156 for (auto Bit : Bits)
163 return any_of(Bits, [](BitWord Bit) { return Bit != 0; });
169 if (Bits[i] != ~BitWord(0))
174 return Bits[Size / BITWORD_SIZE] == (BitWord(1) << Remainder) - 1;
201 BitWord Copy = Bits[i];
233 BitWord Copy = Bits[CurrentWord];
270 BitWord Copy = Bits[CurrentWor
[all...]
H A DPointerEmbeddedInt.h32 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT>
38 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
44 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
47 Mask = static_cast<uintptr_t>(-1) << Bits
64 assert((std::is_signed<IntT>::value ? isInt<Bits>(I) : isUInt<Bits>(I)) &&
81 template <typename IntT, int Bits>
82 struct PointerLikeTypeTraits<PointerEmbeddedInt<IntT, Bits>> {
83 using T = PointerEmbeddedInt<IntT, Bits>;
102 template <typename IntT, int Bits>
[all...]
H A DSparseBitVector.h54 BitWord Bits[BITWORDS_PER_ELEMENT]; member in struct:llvm::SparseBitVectorElement
58 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
64 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
72 if (Bits[i] != RHS.Bits[i])
84 return Bits[Idx];
93 if (Bits[i])
99 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE);
112 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE));
116 return Bits[Id
[all...]
H A DBitfields.h94 template <typename T, unsigned Bits> struct BitPatterns {
103 static_assert(TypeBits >= Bits, "n-bit must fit in T");
105 /// e.g. with TypeBits == 8 and Bits == 6.
109 static constexpr Unsigned Umax = AllOnes >> (TypeBits - Bits); // 00111111
110 static constexpr Unsigned SignBitMask = Unsigned(1) << (Bits - 1); // 00100000
120 template <typename T, unsigned Bits, bool = std::is_unsigned<T>::value>
123 using BP = BitPatterns<T, Bits>;
134 template <typename T, unsigned Bits> struct Compressor<T, Bits, false> {
136 using BP = BitPatterns<T, Bits>;
228 static constexpr unsigned Bits = Size; member in struct:llvm::Bitfield::Element
[all...]
H A DSmallBitVector.h199 uintptr_t Bits = getSmallBits(); local
200 return countPopulation(Bits);
229 uintptr_t Bits = getSmallBits(); local
230 if (Bits == 0)
232 return countTrailingZeros(Bits);
239 uintptr_t Bits = getSmallBits(); local
240 if (Bits == 0)
242 return NumBaseBits - countLeadingZeros(Bits) - 1;
253 uintptr_t Bits = getSmallBits();
254 return countTrailingOnes(Bits);
276 uintptr_t Bits = getSmallBits(); local
290 uintptr_t Bits = getSmallBits(); local
311 uintptr_t Bits = getSmallBits(); local
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Basic/
H A DCodeGenOptions.cpp15 #define CODEGENOPT(Name, Bits, Default) Name = Default;
16 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
H A DLangOptions.cpp18 #define LANGOPT(Name, Bits, Default, Description) Name = Default;
19 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) set##Name(Default);
24 #define LANGOPT(Name, Bits, Default, Description)
25 #define BENIGN_LANGOPT(Name, Bits, Default, Description) Name = Default;
26 #define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/AArch64/Utils/
H A DAArch64BaseInfo.cpp143 uint32_t Bits; local
149 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2;
151 return Bits;
154 std::string AArch64SysReg::genericRegisterString(uint32_t Bits) { argument
155 assert(Bits < 0x10000);
156 uint32_t Op0 = (Bits >> 14) & 0x3;
157 uint32_t Op1 = (Bits >> 11) & 0x7;
158 uint32_t CRn = (Bits >> 7) & 0xf;
159 uint32_t CRm = (Bits >> 3) & 0xf;
160 uint32_t Op2 = Bits
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/MC/
H A DSubtargetFeature.h44 uint64_t Bits[MAX_SUBTARGET_WORDS] = {}; member in class:llvm::FeatureBitset
49 Bits[I] = B[I];
60 std::fill(std::begin(Bits), std::end(Bits), -1ULL);
66 uint64_t NewBits = Bits[I / 64] | (uint64_t(1) << (I % 64));
67 Bits[I / 64] = NewBits;
73 uint64_t NewBits = Bits[I / 64] & ~(uint64_t(1) << (I % 64));
74 Bits[I / 64] = NewBits;
80 uint64_t NewBits = Bits[I / 64] ^ (uint64_t(1) << (I % 64));
81 Bits[
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DDiagnosticOptions.h91 #define DIAGOPT(Name, Bits, Default) unsigned Name : Bits;
92 #define ENUM_DIAGOPT(Name, Type, Bits, Default)
98 #define DIAGOPT(Name, Bits, Default)
99 #define ENUM_DIAGOPT(Name, Type, Bits, Default) unsigned Name : Bits;
127 #define DIAGOPT(Name, Bits, Default)
128 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \
134 #define DIAGOPT(Name, Bits, Default) Name = Default;
135 #define ENUM_DIAGOPT(Name, Type, Bits, Defaul
[all...]
H A DCodeGenOptions.h37 #define CODEGENOPT(Name, Bits, Default) unsigned Name : Bits;
38 #define ENUM_CODEGENOPT(Name, Type, Bits, Default)
42 #define CODEGENOPT(Name, Bits, Default)
43 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) unsigned Name : Bits;
405 #define CODEGENOPT(Name, Bits, Default)
406 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) \
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/
H A DFoldingSet.cpp62 Bits.push_back(I);
65 Bits.push_back(I);
91 Bits.reserve(Bits.size() + NumInserts);
93 Bits.push_back(Size);
102 Bits.append(Base, Base + Units);
116 Bits.push_back(V);
124 Bits.push_back(V);
140 Bits.push_back(V);
145 Bits
[all...]
H A DX86TargetParser.cpp30 uint32_t Bits[NUM_FEATURE_WORDS] = {}; member in class:__anon2114::FeatureBitset
40 return llvm::any_of(Bits, [](uint64_t V) { return V != 0; });
45 uint32_t NewBits = Bits[I / 32] | (uint32_t(1) << (I % 32));
46 Bits[I / 32] = NewBits;
52 return (Bits[I / 32] & Mask) != 0;
56 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) {
58 uint32_t NewBits = Bits[I] & RHS.Bits[I];
59 Bits[I] = NewBits;
65 for (unsigned I = 0, E = array_lengthof(Bits);
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCMachineFunctionInfo.cpp70 int Bits = 0; local
88 Bits += 2;
92 ++Bits;
97 if (Bits < 31)
98 ParameterType |= Type << (30 - Bits);
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DStackLifetime.h65 BitVector Bits; member in class:llvm::StackLifetime::LiveRange
70 LiveRange(unsigned Size, bool Set = false) : Bits(Size, Set) {}
71 void addRange(unsigned Start, unsigned End) { Bits.set(Start, End); }
74 return Bits.anyCommon(Other.Bits);
77 void join(const LiveRange &Other) { Bits |= Other.Bits; }
79 bool test(unsigned Idx) const { return Bits.test(Idx); }
181 return OS << R.Bits;
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
H A DWholeProgramDevirt.h42 // Bits in BytesUsed[I] are 1 if matching bit in Bytes[I] is used, 0 if not.
108 VTableBits *Bits; member in struct:llvm::wholeprogramdevirt::TypeMemberInfo
114 return Bits < other.Bits || (Bits == other.Bits && Offset < other.Offset);
154 uint64_t minAfterBytes() const { return TM->Bits->ObjectSize - TM->Offset; }
159 return minBeforeBytes() + TM->Bits->Before.Bytes.size();
165 return minAfterBytes() + TM->Bits->After.Bytes.size();
171 TM->Bits
[all...]
H A DLowerTypeTests.h35 std::set<uint64_t> Bits; member in struct:llvm::lowertypetests::BitSetInfo
49 return Bits.size() == 1;
53 return Bits.size() == BitSize;
187 /// Allocate BitSize bits in the byte array where Bits contains the bits to
192 void allocate(const std::set<uint64_t> &Bits, uint64_t BitSize,
/netbsd-current/external/apache2/llvm/dist/clang/lib/AST/
H A DLinkage.h66 unsigned Bits = 0; local
67 Bits = (Bits << 1) | ExplicitKind;
68 Bits = (Bits << 1) | IgnoreExplicitVisibility;
69 Bits = (Bits << 1) | IgnoreAllVisibility;
70 return Bits;
/netbsd-current/external/apache2/llvm/dist/llvm/lib/MC/
H A DMCSubtargetInfo.cpp36 void SetImpliedBits(FeatureBitset &Bits, const FeatureBitset &Implies, argument
40 Bits |= Implies;
43 SetImpliedBits(Bits, FE.Implies.getAsBitset(), FeatureTable);
48 void ClearImpliedBits(FeatureBitset &Bits, unsigned Value, argument
52 Bits.reset(FE.Value);
53 ClearImpliedBits(Bits, FE.Value, FeatureTable);
58 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, argument
70 Bits.set(FeatureEntry->Value);
73 SetImpliedBits(Bits, FeatureEntry->Implies.getAsBitset(), FeatureTable);
75 Bits
161 FeatureBitset Bits; local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DARMBasicBlockInfo.h79 unsigned Bits = Unalign ? Unalign : KnownBits; local
82 if (Size & ((1u << Bits) - 1))
83 Bits = countTrailingZeros(Size);
84 return Bits;
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/ubsan/
H A Dubsan_value.h155 const unsigned Bits = getType().getIntegerBitWidth(); local
156 return Bits <= InlineBits;
163 const unsigned Bits = getType().getFloatBitWidth(); local
164 return Bits <= InlineBits;
/netbsd-current/external/gpl3/gcc.old/dist/libsanitizer/ubsan/
H A Dubsan_value.h153 const unsigned Bits = getType().getIntegerBitWidth(); local
154 return Bits <= InlineBits;
161 const unsigned Bits = getType().getFloatBitWidth(); local
162 return Bits <= InlineBits;
/netbsd-current/external/gpl3/gcc/dist/libsanitizer/ubsan/
H A Dubsan_value.h157 const unsigned Bits = getType().getIntegerBitWidth(); local
158 return Bits <= InlineBits;
165 const unsigned Bits = getType().getFloatBitWidth(); local
166 return Bits <= InlineBits;

Completed in 334 milliseconds

1234567