Home
last modified time | relevance | path

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

12345678910>>...18

/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/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/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 …]
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DBitVector.h82 MutableArrayRef<BitWord> Bits; // Actual bits. variable
96 WordRef = &b.Bits[Idx / BITWORD_SIZE]; in reference()
141 Bits = allocate(Capacity); in Size()
142 init_words(Bits, t); in Size()
150 Bits = MutableArrayRef<BitWord>(); in BitVector()
155 Bits = allocate(Capacity); in BitVector()
156 std::memcpy(Bits.data(), RHS.Bits.data(), Capacity * sizeof(BitWord)); in BitVector()
159 BitVector(BitVector &&RHS) : Bits(RHS.Bits), Size(RHS.Size) { in BitVector()
160 RHS.Bits = MutableArrayRef<BitWord>(); in BitVector()
164 ~BitVector() { std::free(Bits.data()); } in ~BitVector()
[all …]
DPackedVector.h31 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument
34 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue()
38 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument
41 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue()
48 static T getValue(const BitVectorTy &Bits, unsigned Idx) { in getValue() argument
51 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i)); in getValue()
52 if (Bits[(Idx << (BitNum-1)) + BitNum-1]) in getValue()
57 static void setValue(BitVectorTy &Bits, unsigned Idx, T val) { in setValue() argument
60 Bits.set((Idx << (BitNum-1)) + BitNum-1); in setValue()
64 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i); in setValue()
[all …]
DSparseBitVector.h55 BitWord Bits[BITWORDS_PER_ELEMENT]; member
59 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement()
65 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement()
73 if (Bits[i] != RHS.Bits[i])
85 return Bits[Idx]; in word()
94 if (Bits[i]) in empty()
100 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE); in set()
113 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE)); in reset()
117 return Bits[Idx / BITWORD_SIZE] & (1L << (Idx % BITWORD_SIZE)); in test()
123 NumBits += countPopulation(Bits[i]); in count()
[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_EQ(0x0, instr->Bits(27, 24)); in DecodePCRelAddressing()
109 DCHECK_EQ(0x4, instr->Bits(27, 24) & 0xC); // 0x4, 0x5, 0x6, 0x7 in DecodeBranchSystemException()
111 switch (instr->Bits(31, 29)) { in DecodeBranchSystemException()
142 if ((instr->Bits(4, 2) != 0) || in DecodeBranchSystemException()
156 if (instr->Bits(23, 22) == 0) { in DecodeBranchSystemException()
158 if ((instr->Bits(21, 19) == 0x4) || in DecodeBranchSystemException()
180 (instr->Bits(20, 16) != 0x1F) || in DecodeBranchSystemException()
181 (instr->Bits(15, 10) != 0) || in DecodeBranchSystemException()
[all …]
/external/v8/src/arm/
Ddisasm-arm.cc238 int shift = instr->Bits(11, 7); in PrintShiftSat()
243 instr->Bits(11, 7)); in PrintShiftSat()
366 (instr->Bits(11, 9) == 0x5) && in FormatVFPRegister()
369 reg = instr->Bits(19, 16) | (instr->Bit(7) << 4); in FormatVFPRegister()
476 uint32_t lsbit = instr->Bits(11, 7); in FormatOption()
477 uint32_t width = instr->Bits(20, 16) + 1; in FormatOption()
508 instr->Bits(width + lsb - 1, lsb)); in FormatOption()
528 if ((instr->Bits(27, 25) == 0) && (instr->Bit(20) == 0) && in FormatOption()
529 (instr->Bits(7, 6) == 3) && (instr->Bit(4) == 1)) { in FormatOption()
561 (instr->Bits(19, 8) << 4) + in FormatOption()
[all …]
Dconstants-arm.h477 inline int Bits(int hi, int lo) const { in Bits() function
496 static inline int Bits(Instr instr, int hi, int lo) { in Bits() function
519 inline int ConditionValue() const { return Bits(31, 28); } in ConditionValue()
526 inline int TypeValue() const { return Bits(27, 25); } in TypeValue()
527 inline int SpecialValue() const { return Bits(27, 23); } in SpecialValue()
529 inline int RnValue() const { return Bits(19, 16); } in RnValue()
531 inline int RdValue() const { return Bits(15, 12); } in RdValue()
534 inline int CoprocessorValue() const { return Bits(11, 8); } in CoprocessorValue()
537 inline int VnValue() const { return Bits(19, 16); } in VnValue()
538 inline int VmValue() const { return Bits(3, 0); } in VmValue()
[all …]
/external/skqp/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/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/swiftshader/third_party/llvm-7.0/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/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DSubtargetFeature.cpp126 void SetImpliedBits(FeatureBitset &Bits, const SubtargetFeatureKV &FeatureEntry, in SetImpliedBits() argument
132 Bits |= FE.Value; in SetImpliedBits()
133 SetImpliedBits(Bits, FE, FeatureTable); in SetImpliedBits()
140 void ClearImpliedBits(FeatureBitset &Bits, in ClearImpliedBits() argument
147 Bits &= ~FE.Value; in ClearImpliedBits()
148 ClearImpliedBits(Bits, FE, FeatureTable); in ClearImpliedBits()
154 SubtargetFeatures::ToggleFeature(FeatureBitset &Bits, StringRef Feature, in ToggleFeature() argument
161 if ((Bits & FeatureEntry->Value) == FeatureEntry->Value) { in ToggleFeature()
162 Bits &= ~FeatureEntry->Value; in ToggleFeature()
164 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-7.0/llvm/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 …]

12345678910>>...18