Home
last modified time | relevance | path

Searched refs:Bits (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/external/elfutils/libelf/
Dgelf_xlate.c67 #define FETCH(Bits, ptr) (*(const uint##Bits##_t *) ptr) argument
68 #define STORE(Bits, ptr, val) (*(uint##Bits##_t *) ptr = val) argument
79 #define FETCH(Bits, ptr) (((const union unaligned *) ptr)->u##Bits) argument
80 #define STORE(Bits, ptr, val) (((union unaligned *) ptr)->u##Bits = val) argument
90 #define FUNDAMENTAL(NAME, Name, Bits) \ argument
91 INLINE2 (ELFW2(Bits,FSZ_##NAME), ElfW2(Bits,cvt_##Name), ElfW2(Bits,Name))
135 #define START(Bits, Name, EName) \ argument
137 ElfW2 (Bits, cvt_##Name) (void *dest, const void *src, size_t len, \
139 { ElfW2(Bits, Name) *tdest = (ElfW2(Bits, Name) *) dest; \
140 ElfW2(Bits, Name) *tsrc = (ElfW2(Bits, Name) *) src; \
[all …]
Dabstract.h31 #define Ehdr(Bits, Ext) \ argument
32 START (Bits, Ehdr, Ext##Ehdr) \
35 TYPE_NAME (ElfW2(Bits, Ext##Half), e_type) \
36 TYPE_NAME (ElfW2(Bits, Ext##Half), e_machine) \
37 TYPE_NAME (ElfW2(Bits, Ext##Word), e_version) \
38 TYPE_NAME (ElfW2(Bits, Ext##Addr), e_entry) \
39 TYPE_NAME (ElfW2(Bits, Ext##Off), e_phoff) \
40 TYPE_NAME (ElfW2(Bits, Ext##Off), e_shoff) \
41 TYPE_NAME (ElfW2(Bits, Ext##Word), e_flags) \
42 TYPE_NAME (ElfW2(Bits, Ext##Half), e_ehsize) \
[all …]
/external/llvm/include/llvm/ADT/
DBitVector.h35 BitWord *Bits; // Actual bits. variable
52 WordRef = &b.Bits[Idx / BITWORD_SIZE]; in reference()
79 Bits = nullptr; in BitVector()
86 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size()
87 init_words(Bits, Capacity, t); in Size()
95 Bits = nullptr; in BitVector()
101 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector()
102 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector()
106 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) { in BitVector()
107 RHS.Bits = nullptr; in BitVector()
[all …]
DPackedVector.h30 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument
33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue()
37 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument
40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue()
47 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument
50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue()
51 if (Bits[(Idx << (BitNum-1)) + BitNum-1]) in getValue()
56 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument
59 Bits.set((Idx << (BitNum-1)) + BitNum-1); in setValue()
63 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue()
[all …]
DSparseBitVector.h57 BitWord Bits[BITWORDS_PER_ELEMENT]; member
62 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
68 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
76 if (Bits[i] != RHS.Bits[i])
88 return Bits[Idx];
97 if (Bits[i])
103 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE);
116 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE));
120 return Bits[Idx / BITWORD_SIZE] & (1L << (Idx % BITWORD_SIZE));
126 NumBits += countPopulation(Bits[i]);
[all …]
DPointerEmbeddedInt.h30 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT>
36 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
42 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
45 Mask = static_cast<uintptr_t>(-1) << Bits
64 assert((std::is_signed<IntT>::value ? llvm::isInt<Bits>(I)
65 : llvm::isUInt<Bits>(I)) &&
82 template <typename IntT, int Bits>
83 class PointerLikeTypeTraits<PointerEmbeddedInt<IntT, Bits>> {
84 typedef PointerEmbeddedInt<IntT, Bits> T;
102 template <typename IntT, int Bits>
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DBitVector.h36 BitWord *Bits; // Actual bits. variable
51 WordRef = &b.Bits[Idx / BITWORD_SIZE]; in reference()
79 Bits = nullptr; in BitVector()
86 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size()
87 init_words(Bits, Capacity, t); in Size()
95 Bits = nullptr; in BitVector()
101 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector()
102 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector()
106 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) { in BitVector()
107 RHS.Bits = nullptr; in BitVector()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceBitVector.h49 memcpy(Bits, BV.Bits, sizeof(Bits));
89 return Reference(Bits + (Idx >> BitIndexSize),
95 return Bits[Idx >> BitIndexSize] &
105 if (Bits[i]) { in any()
135 Count += llvm::countPopulation(Bits[i]); in count()
144 Ret.Bits[i] = Bits[i] & Rhs.Bits[i];
159 Bits[i] |= Rhs.Bits[i];
168 Ret.Bits[i] = Bits[i] | Rhs.Bits[i];
173 void reset() { memset(Bits, 0, sizeof(Bits)); } in reset()
186 ElementType Bits[BitsElements]; variable
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DBitVector.h31 BitWord *Bits; // Actual bits. variable
47 WordRef = &b.Bits[Idx / BITWORD_SIZE]; in reference()
74 Bits = 0; in BitVector()
81 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size()
82 init_words(Bits, Capacity, t); in Size()
90 Bits = 0; in BitVector()
96 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector()
97 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector()
101 std::free(Bits); in ~BitVector()
115 NumBits += CountPopulation_32((uint32_t)Bits[i]); in count()
[all …]
DPackedVector.h30 static T getValue(const llvm::BitVector &Bits, unsigned Idx) { in getValue() argument
33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue()
37 static void setValue(llvm::BitVector &Bits, unsigned Idx, T val) { in setValue() argument
40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue()
47 static T getValue(const llvm::BitVector &Bits, unsigned Idx) { in getValue() argument
50 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue()
51 if (Bits[(Idx << (BitNum-1)) + BitNum-1]) in getValue()
56 static void setValue(llvm::BitVector &Bits, unsigned Idx, T val) { in setValue() argument
59 Bits.set((Idx << (BitNum-1)) + BitNum-1); in setValue()
63 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue()
[all …]
DSparseBitVector.h57 BitWord Bits[BITWORDS_PER_ELEMENT]; member
62 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
68 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
76 if (Bits[i] != RHS.Bits[i])
88 return Bits[Idx];
97 if (Bits[i])
103 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE);
116 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE));
120 return Bits[Idx / BITWORD_SIZE] & (1L << (Idx % BITWORD_SIZE));
127 NumBits += CountPopulation_32(Bits[i]);
[all …]
/external/v8/src/arm64/
Ddecoder-arm64-inl.h20 if (instr->Bits(28, 27) == 0) { in Decode()
23 switch (instr->Bits(27, 24)) { in Decode()
99 DCHECK(instr->Bits(27, 24) == 0x0); in DecodePCRelAddressing()
109 DCHECK((instr->Bits(27, 24) == 0x4) || in DecodeBranchSystemException()
110 (instr->Bits(27, 24) == 0x5) || in DecodeBranchSystemException()
111 (instr->Bits(27, 24) == 0x6) || in DecodeBranchSystemException()
112 (instr->Bits(27, 24) == 0x7) ); in DecodeBranchSystemException()
114 switch (instr->Bits(31, 29)) { in DecodeBranchSystemException()
145 if ((instr->Bits(4, 2) != 0) || in DecodeBranchSystemException()
159 if (instr->Bits(23, 22) == 0) { in DecodeBranchSystemException()
[all …]
Dconstants-arm64.h122 V_(Rd, 4, 0, Bits) /* Destination register. */ \
123 V_(Rn, 9, 5, Bits) /* First source register. */ \
124 V_(Rm, 20, 16, Bits) /* Second source register. */ \
125 V_(Ra, 14, 10, Bits) /* Third source register. */ \
126 V_(Rt, 4, 0, Bits) /* Load dest / store source. */ \
127 V_(Rt2, 14, 10, Bits) /* Load second dest / */ \
129 V_(Rs, 20, 16, Bits) /* Store-exclusive status */ \
130 V_(PrefetchMode, 4, 0, Bits) \
133 V_(SixtyFourBits, 31, 31, Bits) \
134 V_(FlagsUpdate, 29, 29, Bits) \
[all …]
/external/v8/src/arm/
Ddisasm-arm.cc238 int shift = instr->Bits(11, 7); in PrintShiftSat()
243 instr->Bits(11, 7)); in PrintShiftSat()
367 (instr->Bits(11, 9) == 0x5) && in FormatVFPRegister()
370 reg = instr->Bits(19, 16) | (instr->Bit(7) << 4); in FormatVFPRegister()
477 uint32_t lsbit = instr->Bits(11, 7); in FormatOption()
478 uint32_t width = instr->Bits(20, 16) + 1; in FormatOption()
509 instr->Bits(width + lsb - 1, lsb)); in FormatOption()
529 if ((instr->Bits(27, 25) == 0) && (instr->Bit(20) == 0) && in FormatOption()
530 (instr->Bits(7, 6) == 3) && (instr->Bit(4) == 1)) { in FormatOption()
562 (instr->Bits(19, 8) << 4) + in FormatOption()
[all …]
Dconstants-arm.h490 inline int Bits(int hi, int lo) const { in Bits() function
509 static inline int Bits(Instr instr, int hi, int lo) { in Bits() function
532 inline int ConditionValue() const { return Bits(31, 28); } in ConditionValue()
539 inline int TypeValue() const { return Bits(27, 25); } in TypeValue()
540 inline int SpecialValue() const { return Bits(27, 23); } in SpecialValue()
542 inline int RnValue() const { return Bits(19, 16); } in RnValue()
544 inline int RdValue() const { return Bits(15, 12); } in RdValue()
547 inline int CoprocessorValue() const { return Bits(11, 8); } in CoprocessorValue()
550 inline int VnValue() const { return Bits(19, 16); } in VnValue()
551 inline int VmValue() const { return Bits(3, 0); } in VmValue()
[all …]
/external/skia/src/utils/
DSkFloatUtils.h58 typedef typename SkTypeWithSize<sizeof(RawType) * CHAR_BIT>::UInt Bits;
70 static const Bits kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1);
73 static const Bits kFractionBitMask =
74 ~static_cast<Bits>(0) >> (kExponentBitCount + 1);
77 static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask);
93 Bits exponent_bits() const { return kExponentBitMask & fU.bits; }
96 Bits fraction_bits() const { return kFractionBitMask & fU.bits; }
117 const Bits dist = DistanceBetweenSignAndMagnitudeNumbers(fU.bits,
129 Bits bits;
149 static Bits SignAndMagnitudeToBiased(const Bits &sam) {
[all …]
/external/swiftshader/third_party/LLVM/test/TableGen/
D2010-03-24-PrematureDefaults.td6 bits<2> Bits = x;
10 // CHECK: Bits = { 0, 1 }
14 // CHECK: Bits = { 1, 0 }
17 // Here was the bug: X.Bits would get resolved to the default a1.Bits while
19 // was processed, X would be set correctly, but Bits retained the default
23 bits<2> Bits = X.Bits;
27 // CHECK: Bits = { 0, 1 }
31 // CHECK: Bits = { 1, 0 }
35 bits<2> Bits = x.Bits;
39 // CHECK: Bits = { 0, 1 }
[all …]
/external/llvm/test/TableGen/
D2010-03-24-PrematureDefaults.td6 bits<2> Bits = x;
10 // CHECK: Bits = { 0, 1 }
14 // CHECK: Bits = { 1, 0 }
17 // Here was the bug: X.Bits would get resolved to the default a1.Bits while
19 // was processed, X would be set correctly, but Bits retained the default
23 bits<2> Bits = X.Bits;
27 // CHECK: Bits = { 0, 1 }
31 // CHECK: Bits = { 1, 0 }
35 bits<2> Bits = x.Bits;
39 // CHECK: Bits = { 0, 1 }
[all …]
/external/llvm/lib/MC/
DSubtargetFeature.cpp135 void SetImpliedBits(FeatureBitset &Bits, const SubtargetFeatureKV *FeatureEntry, in SetImpliedBits() argument
141 Bits |= FE.Value; in SetImpliedBits()
142 SetImpliedBits(Bits, &FE, FeatureTable); in SetImpliedBits()
151 void ClearImpliedBits(FeatureBitset &Bits, in ClearImpliedBits() argument
158 Bits &= ~FE.Value; in ClearImpliedBits()
159 ClearImpliedBits(Bits, &FE, FeatureTable); in ClearImpliedBits()
166 SubtargetFeatures::ToggleFeature(FeatureBitset &Bits, StringRef Feature, in ToggleFeature() argument
174 if ((Bits & FeatureEntry->Value) == FeatureEntry->Value) { in ToggleFeature()
175 Bits &= ~FeatureEntry->Value; in ToggleFeature()
177 ClearImpliedBits(Bits, FeatureEntry, FeatureTable); in ToggleFeature()
[all …]
/external/llvm/lib/Support/
DFoldingSet.cpp57 Bits.append(reinterpret_cast<unsigned *>(&Ptr), in AddPointer()
61 Bits.push_back(I); in AddInteger()
64 Bits.push_back(I); in AddInteger()
84 Bits.push_back(unsigned(I >> 32)); in AddInteger()
89 Bits.push_back(Size); in AddString()
98 Bits.append(Base, Base + Units); in AddString()
112 Bits.push_back(V); in AddString()
120 Bits.push_back(V); in AddString()
136 Bits.push_back(V); in AddString()
141 Bits.append(ID.Bits.begin(), ID.Bits.end()); in AddNodeID()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DFoldingSet.cpp62 Bits.push_back(I); in AddInteger()
65 Bits.push_back(I); in AddInteger()
89 Bits.push_back(Size); in AddString()
98 Bits.append(Base, Base + Units); in AddString()
112 Bits.push_back(V); in AddString()
120 Bits.push_back(V); in AddString()
136 Bits.push_back(V); in AddString()
141 Bits.append(ID.Bits.begin(), ID.Bits.end()); in AddNodeID()
147 return FoldingSetNodeIDRef(Bits.data(), Bits.size()).ComputeHash(); in ComputeHash()
153 return *this == FoldingSetNodeIDRef(RHS.Bits.data(), RHS.Bits.size()); in operator ==()
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DFoldingSet.cpp67 Bits.append(reinterpret_cast<unsigned *>(&Ptr), in AddPointer()
71 Bits.push_back(I); in AddInteger()
74 Bits.push_back(I); in AddInteger()
94 Bits.push_back(unsigned(I >> 32)); in AddInteger()
99 Bits.push_back(Size); in AddString()
108 Bits.append(Base, Base + Units); in AddString()
120 Bits.push_back(V); in AddString()
129 Bits.push_back(V); in AddString()
145 Bits.push_back(V); in AddString()
150 Bits.append(ID.Bits.begin(), ID.Bits.end()); in AddNodeID()
[all …]
/external/llvm/lib/Target/AArch64/Utils/
DAArch64BaseInfo.cpp94 uint32_t Bits; in parseGenericRegister() local
100 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2; in parseGenericRegister()
102 return Bits; in parseGenericRegister()
105 std::string AArch64SysReg::genericRegisterString(uint32_t Bits) { in genericRegisterString() argument
106 assert(Bits < 0x10000); in genericRegisterString()
107 uint32_t Op0 = (Bits >> 14) & 0x3; in genericRegisterString()
108 uint32_t Op1 = (Bits >> 11) & 0x7; in genericRegisterString()
109 uint32_t CRn = (Bits >> 7) & 0xf; in genericRegisterString()
110 uint32_t CRm = (Bits >> 3) & 0xf; in genericRegisterString()
111 uint32_t Op2 = Bits & 0x7; in genericRegisterString()
/external/swiftshader/third_party/LLVM/lib/MC/
DSubtargetFeature.cpp193 void SetImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, in SetImpliedBits() argument
202 Bits |= FE.Value; in SetImpliedBits()
203 SetImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize); in SetImpliedBits()
212 void ClearImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, in ClearImpliedBits() argument
221 Bits &= ~FE.Value; in ClearImpliedBits()
222 ClearImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize); in ClearImpliedBits()
230 SubtargetFeatures::ToggleFeature(uint64_t Bits, const StringRef Feature, in ToggleFeature() argument
238 if ((Bits & FeatureEntry->Value) == FeatureEntry->Value) { in ToggleFeature()
239 Bits &= ~FeatureEntry->Value; in ToggleFeature()
242 ClearImpliedBits(Bits, FeatureEntry, FeatureTable, FeatureTableSize); in ToggleFeature()
[all …]
/external/llvm/include/llvm/Transforms/IPO/
DWholeProgramDevirt.h105 VTableBits *Bits; member
111 return Bits < other.Bits || (Bits == other.Bits && Offset < other.Offset);
148 uint64_t minAfterBytes() const { return TM->Bits->ObjectSize - TM->Offset; } in minAfterBytes()
153 return minBeforeBytes() + TM->Bits->Before.Bytes.size(); in allocatedBeforeBytes()
159 return minAfterBytes() + TM->Bits->After.Bytes.size(); in allocatedAfterBytes()
165 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit()
171 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit()
180 TM->Bits->Before.setLE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
182 TM->Bits->Before.setBE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
189 TM->Bits->After.setBE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes()
[all …]

12345678910>>...12