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

12345678910

/external/skia/src/utils/
H A DSkFloatUtils.h57 /** Bits is a unsigned integer the same size as the floating point number. */
58 typedef typename SkTypeWithSize<sizeof(RawType) * CHAR_BIT>::UInt Bits; typedef in class:SkFloatingPoint
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 dis
[all...]
/external/skqp/src/utils/
H A DSkFloatUtils.h57 /** Bits is a unsigned integer the same size as the floating point number. */
58 typedef typename SkTypeWithSize<sizeof(RawType) * CHAR_BIT>::UInt Bits; typedef in class:SkFloatingPoint
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 dis
[all...]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
H A DPackedVector.h30 static T getValue(const llvm::BitVector &Bits, unsigned Idx) { argument
33 val = T(val | ((Bits[(Idx << (BitNum-1)) + i] ? 1UL : 0UL) << i));
37 static void setValue(llvm::BitVector &Bits, unsigned Idx, T val) { argument
40 Bits[(Idx << (BitNum-1)) + i] = val & (T(1) << i);
47 static T getValue(const llvm::BitVector &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(llvm::BitVector &Bits, unsigned Idx, T val) { argument
59 Bits.set((Idx << (BitNum-1)) + BitNum-1);
63 Bits[(Id
77 llvm::BitVector Bits; member in class:llvm::PackedVector
[all...]
H A DBitVector.h31 BitWord *Bits; // Actual bits. member in class:llvm::BitVector
47 WordRef = &b.Bits[Idx / BITWORD_SIZE];
74 Bits = 0;
81 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
82 init_words(Bits, Capacity, t);
90 Bits = 0;
96 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
97 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord));
101 std::free(Bits);
[all...]
H A DSparseBitVector.h57 BitWord Bits[BITWORDS_PER_ELEMENT]; member in struct:llvm::SparseBitVectorElement
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[Id
[all...]
/external/elfutils/libelf/
H A Dgelf_xlate.c67 #define FETCH(Bits, ptr) (*(const uint##Bits##_t *) ptr)
68 #define STORE(Bits, ptr, val) (*(uint##Bits##_t *) ptr = val)
79 #define FETCH(Bits, ptr) (((const union unaligned *) ptr)->u##Bits)
80 #define STORE(Bits, ptr, val) (((union unaligned *) ptr)->u##Bits = val)
90 #define FUNDAMENTAL(NAME, Name, Bits) \
91 INLINE2 (ELFW2(Bits,FSZ
[all...]
H A Dabstract.h31 #define Ehdr(Bits, Ext) \
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, Ex
[all...]
/external/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.h35 BitWord *Bits; // Actual bits. member in class:llvm::BitVector
37 unsigned Capacity; // Number of BitWords allocated in the Bits array.
52 WordRef = &b.Bits[Idx / BITWORD_SIZE];
79 Bits = nullptr;
86 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
87 init_words(Bits, Capacity, t);
95 Bits = nullptr;
101 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
102 std::memcpy(Bits, RHS.Bits, Capacit
[all...]
H A 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/llvm/lib/Target/AArch64/Utils/
H A DAArch64BaseInfo.cpp94 uint32_t Bits; local
100 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2;
102 return Bits;
105 std::string AArch64SysReg::genericRegisterString(uint32_t Bits) { argument
106 assert(Bits < 0x10000);
107 uint32_t Op0 = (Bits >> 14) & 0x3;
108 uint32_t Op1 = (Bits >> 11) & 0x7;
109 uint32_t CRn = (Bits >> 7) & 0xf;
110 uint32_t CRm = (Bits >> 3) & 0xf;
111 uint32_t Op2 = Bits
[all...]
/external/clang/lib/Basic/
H A DLangOptions.cpp19 #define LANGOPT(Name, Bits, Default, Description) Name = Default;
20 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) set##Name(Default);
25 #define LANGOPT(Name, Bits, Default, Description)
26 #define BENIGN_LANGOPT(Name, Bits, Default, Description) Name = Default;
27 #define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DBitVector.h36 BitWord *Bits; // Actual bits. member in class:llvm::BitVector
38 unsigned Capacity; // Number of BitWords allocated in the Bits array.
51 WordRef = &b.Bits[Idx / BITWORD_SIZE];
79 Bits = nullptr;
86 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
87 init_words(Bits, Capacity, t);
95 Bits = nullptr;
101 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
102 std::memcpy(Bits, RHS.Bits, Capacit
[all...]
/external/swiftshader/third_party/subzero/src/
H A DIceBitVector.h49 memcpy(Bits, BV.Bits, sizeof(Bits));
89 return Reference(Bits + (Idx >> BitIndexSize),
95 return Bits[Idx >> BitIndexSize] &
105 if (Bits[i]) {
135 Count += llvm::countPopulation(Bits[i]);
144 Ret.Bits[i] = Bits[i] & Rhs.Bits[
[all...]
/external/clang/lib/Frontend/
H A DCodeGenOptions.cpp16 #define CODEGENOPT(Name, Bits, Default) Name = Default;
17 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) set##Name(Default);
/external/swiftshader/third_party/LLVM/lib/Target/X86/
H A DX86GenSubtargetInfo.inc158 uint64_t Bits = ReInitMCSubtargetInfo(CPU, FS);
159 if ((Bits & X86::Feature3DNow) != 0 && X863DNowLevel < ThreeDNow) X863DNowLevel = ThreeDNow;
160 if ((Bits & X86::Feature3DNowA) != 0 && X863DNowLevel < ThreeDNowA) X863DNowLevel = ThreeDNowA;
161 if ((Bits & X86::Feature64Bit) != 0) HasX86_64 = true;
162 if ((Bits & X86::FeatureAES) != 0) HasAES = true;
163 if ((Bits & X86::FeatureAVX) != 0) HasAVX = true;
164 if ((Bits & X86::FeatureBMI) != 0) HasBMI = true;
165 if ((Bits & X86::FeatureCLMUL) != 0) HasCLMUL = true;
166 if ((Bits & X86::FeatureCMOV) != 0) HasCMov = true;
167 if ((Bits
[all...]
/external/clang/include/clang/Basic/
H A DDiagnosticOptions.h73 #define DIAGOPT(Name, Bits, Default) unsigned Name : Bits;
74 #define ENUM_DIAGOPT(Name, Type, Bits, Default)
80 #define DIAGOPT(Name, Bits, Default)
81 #define ENUM_DIAGOPT(Name, Type, Bits, Default) unsigned Name : Bits;
101 #define DIAGOPT(Name, Bits, Default)
102 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \
108 #define DIAGOPT(Name, Bits, Default) Name = Default;
109 #define ENUM_DIAGOPT(Name, Type, Bits, Defaul
[all...]
H A DLangOptions.h33 #define LANGOPT(Name, Bits, Default, Description) unsigned Name : Bits;
34 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description)
40 #define LANGOPT(Name, Bits, Default, Description)
41 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
42 unsigned Name : Bits;
132 #define LANGOPT(Name, Bits, Default, Description)
133 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
/external/llvm/lib/MC/
H A DSubtargetFeature.cpp135 void SetImpliedBits(FeatureBitset &Bits, const SubtargetFeatureKV *FeatureEntry, argument
141 Bits |= FE.Value;
142 SetImpliedBits(Bits, &FE, FeatureTable);
151 void ClearImpliedBits(FeatureBitset &Bits, argument
158 Bits &= ~FE.Value;
159 ClearImpliedBits(Bits, &FE, FeatureTable);
166 SubtargetFeatures::ToggleFeature(FeatureBitset &Bits, StringRef Feature, argument
174 if ((Bits & FeatureEntry->Value) == FeatureEntry->Value) {
175 Bits &= ~FeatureEntry->Value;
177 ClearImpliedBits(Bits, FeatureEntr
191 ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, ArrayRef<SubtargetFeatureKV> FeatureTable) argument
238 FeatureBitset Bits; local
[all...]
/external/swiftshader/third_party/LLVM/lib/Support/
H A DFoldingSet.cpp67 Bits.append(reinterpret_cast<unsigned *>(&Ptr),
71 Bits.push_back(I);
74 Bits.push_back(I);
94 Bits.push_back(unsigned(I >> 32));
99 Bits.push_back(Size);
108 Bits.append(Base, Base + Units);
120 Bits.push_back(V);
129 Bits.push_back(V);
145 Bits.push_back(V);
150 Bits
[all...]
/external/v8/src/arm64/
H A Ddecoder-arm64-inl.h20 if (instr->Bits(28, 27) == 0) {
23 switch (instr->Bits(27, 24)) {
99 DCHECK(instr->Bits(27, 24) == 0x0);
109 DCHECK((instr->Bits(27, 24) == 0x4) ||
110 (instr->Bits(27, 24) == 0x5) ||
111 (instr->Bits(27, 24) == 0x6) ||
112 (instr->Bits(27, 24) == 0x7) );
114 switch (instr->Bits(31, 29)) {
145 if ((instr->Bits(4, 2) != 0) ||
159 if (instr->Bits(2
[all...]
/external/llvm/lib/Support/
H A DFoldingSet.cpp57 Bits.append(reinterpret_cast<unsigned *>(&Ptr),
61 Bits.push_back(I);
64 Bits.push_back(I);
84 Bits.push_back(unsigned(I >> 32));
89 Bits.push_back(Size);
98 Bits.append(Base, Base + Units);
112 Bits.push_back(V);
120 Bits.push_back(V);
136 Bits.push_back(V);
141 Bits
[all...]
/external/v8/src/arm/
H A Dconstants-arm.h490 inline int Bits(int hi, int lo) const { function in class:v8::internal::Instruction
509 static inline int Bits(Instr instr, int hi, int lo) { function in class:v8::internal::Instruction
532 inline int ConditionValue() const { return Bits(31, 28); }
539 inline int TypeValue() const { return Bits(27, 25); }
540 inline int SpecialValue() const { return Bits(27, 23); }
542 inline int RnValue() const { return Bits(19, 16); }
544 inline int RdValue() const { return Bits(15, 12); }
547 inline int CoprocessorValue() const { return Bits(11, 8); }
550 inline int VnValue() const { return Bits(19, 16); }
551 inline int VmValue() const { return Bits(
[all...]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
H A DFoldingSet.cpp62 Bits.push_back(I);
65 Bits.push_back(I);
89 Bits.push_back(Size);
98 Bits.append(Base, Base + Units);
112 Bits.push_back(V);
120 Bits.push_back(V);
136 Bits.push_back(V);
141 Bits.append(ID.Bits.begin(), ID.Bits
[all...]
/external/swiftshader/third_party/LLVM/lib/MC/
H A DSubtargetFeature.cpp193 void SetImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, argument
202 Bits |= FE.Value;
203 SetImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize);
212 void ClearImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, argument
221 Bits &= ~FE.Value;
222 ClearImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize);
230 SubtargetFeatures::ToggleFeature(uint64_t Bits, const StringRef Feature, argument
238 if ((Bits & FeatureEntry->Value) == FeatureEntry->Value) {
239 Bits &= ~FeatureEntry->Value;
242 ClearImpliedBits(Bits, FeatureEntr
279 uint64_t Bits = 0; // Resulting bits local
[all...]

Completed in 1299 milliseconds

12345678910