Home
last modified time | relevance | path

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

123456

/external/elfutils/libelf/
Dgelf_xlate.c87 #define FETCH(Bits, ptr) (*(const uint##Bits##_t *) ptr) argument
88 #define STORE(Bits, ptr, val) (*(uint##Bits##_t *) ptr = val) argument
99 #define FETCH(Bits, ptr) (((const union unaligned *) ptr)->u##Bits) argument
100 #define STORE(Bits, ptr, val) (((union unaligned *) ptr)->u##Bits = val) argument
110 #define FUNDAMENTAL(NAME, Name, Bits) \ argument
111 INLINE2 (ELFW2(Bits,FSZ_##NAME), ElfW2(Bits,cvt_##Name), ElfW2(Bits,Name))
155 #define START(Bits, Name, EName) \ argument
157 ElfW2 (Bits, cvt_##Name) (void *dest, const void *src, size_t len, \
159 { ElfW2(Bits, Name) *tdest = (ElfW2(Bits, Name) *) dest; \
160 ElfW2(Bits, Name) *tsrc = (ElfW2(Bits, Name) *) src; \
[all …]
Dabstract.h52 #define Ehdr(Bits, Ext) \ argument
53 START (Bits, Ehdr, Ext##Ehdr) \
56 TYPE_NAME (ElfW2(Bits, Ext##Half), e_type) \
57 TYPE_NAME (ElfW2(Bits, Ext##Half), e_machine) \
58 TYPE_NAME (ElfW2(Bits, Ext##Word), e_version) \
59 TYPE_NAME (ElfW2(Bits, Ext##Addr), e_entry) \
60 TYPE_NAME (ElfW2(Bits, Ext##Off), e_phoff) \
61 TYPE_NAME (ElfW2(Bits, Ext##Off), e_shoff) \
62 TYPE_NAME (ElfW2(Bits, Ext##Word), e_flags) \
63 TYPE_NAME (ElfW2(Bits, Ext##Half), e_ehsize) \
[all …]
DlibelfP.h71 #define __elfw2_(Bits, Name) __elf##Bits##_##Name argument
72 #define elfw2_(Bits, Name) elf##Bits##_##Name argument
73 #define ElfW2_(Bits, Name) Elf##Bits##_##Name argument
74 #define ELFW2_(Bits, Name) ELF##Bits##_##Name argument
75 #define ELFW_(Name, Bits) Name##Bits argument
76 #define __elfw2(Bits, Name) __elfw2_(Bits, Name) argument
77 #define elfw2(Bits, Name) elfw2_(Bits, Name) argument
78 #define ElfW2(Bits, Name) ElfW2_(Bits, Name) argument
79 #define ELFW2(Bits, Name) ELFW2_(Bits, Name) argument
80 #define ELFW(Name, Bits) ELFW_(Name, Bits) argument
Delf_getdata.c104 # define TYPE_ALIGNS(Bits) \ argument
106 [ELF_T_ADDR] = __alignof__ (ElfW2(Bits,Addr)), \
107 [ELF_T_HALF] = __alignof__ (ElfW2(Bits,Half)), \
108 [ELF_T_WORD] = __alignof__ (ElfW2(Bits,Word)), \
109 [ELF_T_SYM] = __alignof__ (ElfW2(Bits,Sym)), \
110 [ELF_T_SYMINFO] = __alignof__ (ElfW2(Bits,Syminfo)), \
111 [ELF_T_REL] = __alignof__ (ElfW2(Bits,Rel)), \
112 [ELF_T_RELA] = __alignof__ (ElfW2(Bits,Rela)), \
113 [ELF_T_DYN] = __alignof__ (ElfW2(Bits,Dyn)), \
114 [ELF_T_VDEF] = __alignof__ (ElfW2(Bits,Verdef)), \
[all …]
/external/llvm/include/llvm/ADT/
DBitVector.h32 BitWord *Bits; // Actual bits. variable
48 WordRef = &b.Bits[Idx / BITWORD_SIZE]; in reference()
75 Bits = 0; in BitVector()
82 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in Size()
83 init_words(Bits, Capacity, t); in Size()
91 Bits = 0; in BitVector()
97 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord)); in BitVector()
98 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord)); in BitVector()
103 : Bits(RHS.Bits), Size(RHS.Size), Capacity(RHS.Capacity) { in BitVector()
104 RHS.Bits = 0; 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));
127 NumBits += CountPopulation_32(Bits[i]);
[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/dexmaker/src/dx/java/com/android/dx/util/
DBitIntSet.java35 bits = Bits.makeBitSet(max); in BitIntSet()
41 Bits.set(bits, value, true); in add()
50 if (value >= Bits.getMax(bits)) { in ensureCapacity()
51 int[] newBits = Bits.makeBitSet( in ensureCapacity()
52 Math.max(value + 1, 2 * Bits.getMax(bits))); in ensureCapacity()
60 if (value < Bits.getMax(bits)) { in remove()
61 Bits.set(bits, value, false); in remove()
67 return (value < Bits.getMax(bits)) && Bits.get(bits, value); in has()
74 ensureCapacity(Bits.getMax(o.bits) + 1); in merge()
75 Bits.or(bits, o.bits); in merge()
[all …]
/external/llvm/test/TableGen/
D2010-03-24-PrematureDefaults.td5 bits<2> Bits = x;
9 // CHECK: Bits = { 0, 1 }
13 // CHECK: Bits = { 1, 0 }
16 // Here was the bug: X.Bits would get resolved to the default a1.Bits while
18 // was processed, X would be set correctly, but Bits retained the default
22 bits<2> Bits = X.Bits;
26 // CHECK: Bits = { 0, 1 }
30 // CHECK: Bits = { 1, 0 }
34 bits<2> Bits = x.Bits;
38 // CHECK: Bits = { 0, 1 }
[all …]
/external/v8/src/arm/
Dconstants-arm.h544 inline int Bits(int hi, int lo) const { in Bits() function
561 static inline int Bits(Instr instr, int hi, int lo) { in Bits() function
587 return static_cast<Condition>(Bits(31, 28)); in ConditionValue()
595 inline int TypeValue() const { return Bits(27, 25); } in TypeValue()
597 inline int RnValue() const { return Bits(19, 16); } in RnValue()
599 inline int RdValue() const { return Bits(15, 12); } in RdValue()
602 inline int CoprocessorValue() const { return Bits(11, 8); } in CoprocessorValue()
605 inline int VnValue() const { return Bits(19, 16); } in VnValue()
606 inline int VmValue() const { return Bits(3, 0); } in VmValue()
607 inline int VdValue() const { return Bits(15, 12); } in VdValue()
[all …]
Ddisasm-arm.cc257 int shift = instr->Bits(11, 7); in PrintShiftSat()
262 instr->Bits(11, 7)); in PrintShiftSat()
454 uint32_t lsbit = instr->Bits(11, 7); in FormatOption()
455 uint32_t width = instr->Bits(20, 16) + 1; in FormatOption()
486 instr->Bits(width + lsb - 1, lsb)); in FormatOption()
506 if ((instr->Bits(27, 25) == 0) && (instr->Bit(20) == 0) && in FormatOption()
507 (instr->Bits(7, 6) == 3) && (instr->Bit(4) == 1)) { in FormatOption()
539 (instr->Bits(19, 8) << 4) + in FormatOption()
540 instr->Bits(3, 0)); in FormatOption()
685 if (instr->Bits(7, 4) == 9) { in DecodeType01()
[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()
110 Bits.push_back(V); in AddString()
119 Bits.push_back(V); in AddString()
135 Bits.push_back(V); in AddString()
140 Bits.append(ID.Bits.begin(), ID.Bits.end()); in AddNodeID()
[all …]
/external/clang/include/clang/Basic/
DDiagnosticOptions.h39 #define DIAGOPT(Name, Bits, Default) unsigned Name : Bits; argument
40 #define ENUM_DIAGOPT(Name, Type, Bits, Default) argument
46 #define DIAGOPT(Name, Bits, Default) argument
47 #define ENUM_DIAGOPT(Name, Type, Bits, Default) unsigned Name : Bits; argument
63 #define DIAGOPT(Name, Bits, Default) argument
64 #define ENUM_DIAGOPT(Name, Type, Bits, Default) \ argument
70 #define DIAGOPT(Name, Bits, Default) Name = Default; in DiagnosticOptions() argument
71 #define ENUM_DIAGOPT(Name, Type, Bits, Default) set##Name(Default); in DiagnosticOptions() argument
DLangOptions.h40 #define LANGOPT(Name, Bits, Default, Description) unsigned Name : Bits; argument
41 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) argument
48 #define LANGOPT(Name, Bits, Default, Description) argument
49 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \ argument
50 unsigned Name : Bits;
89 #define LANGOPT(Name, Bits, Default, Description) argument
90 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \ argument
DDiagnosticOptions.def24 # define VALUE_DIAGOPT(Name, Bits, Default) \
25 DIAGOPT(Name, Bits, Default)
29 # define ENUM_DIAGOPT(Name, Type, Bits, Default) \
30 DIAGOPT(Name, Bits, Default)
34 # define SEMANTIC_DIAGOPT(Name, Bits, Default) DIAGOPT(Name, Bits, Default)
38 # define SEMANTIC_VALUE_DIAGOPT(Name, Bits, Default) \
39 VALUE_DIAGOPT(Name, Bits, Default)
43 # define SEMANTIC_ENUM_DIAGOPT(Name, Type, Bits, Default) \
44 ENUM_DIAGOPT(Name, Type, Bits, Default)
/external/llvm/lib/MC/
DSubtargetFeature.cpp192 void SetImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, in SetImpliedBits() argument
201 Bits |= FE.Value; in SetImpliedBits()
202 SetImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize); in SetImpliedBits()
211 void ClearImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, in ClearImpliedBits() argument
220 Bits &= ~FE.Value; in ClearImpliedBits()
221 ClearImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize); in ClearImpliedBits()
229 SubtargetFeatures::ToggleFeature(uint64_t Bits, const StringRef Feature, in ToggleFeature() argument
237 if ((Bits & FeatureEntry->Value) == FeatureEntry->Value) { in ToggleFeature()
238 Bits &= ~FeatureEntry->Value; in ToggleFeature()
241 ClearImpliedBits(Bits, FeatureEntry, FeatureTable, FeatureTableSize); in ToggleFeature()
[all …]
/external/clang/include/clang/Frontend/
DCodeGenOptions.h26 #define CODEGENOPT(Name, Bits, Default) unsigned Name : Bits; argument
27 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) argument
31 #define CODEGENOPT(Name, Bits, Default) argument
32 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) unsigned Name : Bits; argument
127 #define CODEGENOPT(Name, Bits, Default) argument
128 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) \ argument
134 #define CODEGENOPT(Name, Bits, Default) Name = Default; in CodeGenOptions() argument
135 #define ENUM_CODEGENOPT(Name, Type, Bits, Default) \ in CodeGenOptions() argument
/external/chromium/sdch/open-vcdiff/src/gtest/internal/
Dgtest-internal.h324 typedef typename TypeWithSize<sizeof(RawType)>::UInt Bits; typedef
339 static const Bits kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1);
342 static const Bits kFractionBitMask =
343 ~static_cast<Bits>(0) >> (kExponentBitCount + 1);
346 static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask);
375 static RawType ReinterpretBits(const Bits bits) { in ReinterpretBits()
389 const Bits &bits() const { return bits_; } in bits()
392 Bits exponent_bits() const { return kExponentBitMask & bits_; } in exponent_bits()
395 Bits fraction_bits() const { return kFractionBitMask & bits_; } in fraction_bits()
398 Bits sign_bit() const { return kSignBitMask & bits_; } in sign_bit()
[all …]
/external/clang/lib/Basic/
DLangOptions.cpp20 #define LANGOPT(Name, Bits, Default, Description) Name = Default; in LangOptions() argument
21 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) set##Name(Default); in LangOptions() argument
28 #define LANGOPT(Name, Bits, Default, Description) in resetNonModularOptions() argument
29 #define BENIGN_LANGOPT(Name, Bits, Default, Description) Name = Default; in resetNonModularOptions() argument
30 #define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description) \ in resetNonModularOptions() argument
/external/protobuf/gtest/include/gtest/internal/
Dgtest-internal.h337 typedef typename TypeWithSize<sizeof(RawType)>::UInt Bits; typedef
352 static const Bits kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1);
355 static const Bits kFractionBitMask =
356 ~static_cast<Bits>(0) >> (kExponentBitCount + 1);
359 static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask);
388 static RawType ReinterpretBits(const Bits bits) { in ReinterpretBits()
402 const Bits &bits() const { return u_.bits_; } in bits()
405 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits()
408 Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } in fraction_bits()
411 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit()
[all …]
/external/open-vcdiff/gtest/include/gtest/internal/
Dgtest-internal.h339 typedef typename TypeWithSize<sizeof(RawType)>::UInt Bits; typedef
354 static const Bits kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1);
357 static const Bits kFractionBitMask =
358 ~static_cast<Bits>(0) >> (kExponentBitCount + 1);
361 static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask);
390 static RawType ReinterpretBits(const Bits bits) { in ReinterpretBits()
404 const Bits &bits() const { return u_.bits_; } in bits()
407 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits()
410 Bits fraction_bits() const { return kFractionBitMask & u_.bits_; } in fraction_bits()
413 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit()
[all …]
/external/llvm/lib/Target/AArch64/Utils/
DAArch64BaseInfo.cpp503 uint32_t Bits; in fromString() local
508 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2; in fromString()
511 return Bits; in fromString()
515 A64SysReg::SysRegMapper::toString(uint32_t Bits, bool &Valid) const { in toString() argument
517 if (SysRegPairs[i].Value == Bits) { in toString()
524 if (InstPairs[i].Value == Bits) { in toString()
530 uint32_t Op0 = (Bits >> 14) & 0x3; in toString()
531 uint32_t Op1 = (Bits >> 11) & 0x7; in toString()
532 uint32_t CRn = (Bits >> 7) & 0xf; in toString()
533 uint32_t CRm = (Bits >> 3) & 0xf; in toString()
[all …]
/external/valgrind/main/coregrind/m_initimg/
Dsimple_huffman.c74 UInt Bits; member
192 sym[k].Bits = 0; in _Huffman_Hist()
239 sym[first].Bits = bits; in _Huffman_MakeTree()
324 sym[*symnum].Bits = bits; in _Huffman_RecoverTree()
395 if( sym[k].Bits > 32 ) in Huffman_Compress()
423 sym[symbol].Bits ); in Huffman_Compress()
466 sym[k].Bits = 0x7fffffff; in Huffman_Uncompress()
479 if( sym[k].Bits > sym[k+1].Bits ) in Huffman_Uncompress()
499 delta_bits = sym[m].Bits - bits; in Huffman_Uncompress()
504 bits = sym[m].Bits; in Huffman_Uncompress()
[all …]
/external/v8/src/mips/
Dconstants-mips.h618 inline int Bits(int hi, int lo) const { in Bits() function
637 Bits(kOpcodeShift + kOpcodeBits - 1, kOpcodeShift)); in OpcodeValue()
643 return Bits(kRsShift + kRsBits - 1, kRsShift); in RsValue()
649 return Bits(kRtShift + kRtBits - 1, kRtShift); in RtValue()
654 return Bits(kRdShift + kRdBits - 1, kRdShift); in RdValue()
659 return Bits(kSaShift + kSaBits - 1, kSaShift); in SaValue()
665 return Bits(kFunctionShift + kFunctionBits - 1, kFunctionShift); in FunctionValue()
669 return Bits(kFdShift + kFdBits - 1, kFdShift); in FdValue()
673 return Bits(kFsShift + kFsBits - 1, kFsShift); in FsValue()
677 return Bits(kFtShift + kFtBits - 1, kFtShift); in FtValue()
[all …]

123456