Home
last modified time | relevance | path

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

12345678910>>...14

/third_party/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 …]
Delf_getdata.c78 # define TYPE_ALIGNS(Bits) \ argument
79 [ELF_T_ADDR] = __alignof__ (ElfW2(Bits,Addr)), \
80 [ELF_T_EHDR] = __alignof__ (ElfW2(Bits,Ehdr)), \
81 [ELF_T_HALF] = __alignof__ (ElfW2(Bits,Half)), \
82 [ELF_T_OFF] = __alignof__ (ElfW2(Bits,Off)), \
83 [ELF_T_PHDR] = __alignof__ (ElfW2(Bits,Phdr)), \
84 [ELF_T_SHDR] = __alignof__ (ElfW2(Bits,Shdr)), \
85 [ELF_T_SWORD] = __alignof__ (ElfW2(Bits,Sword)), \
86 [ELF_T_WORD] = __alignof__ (ElfW2(Bits,Word)), \
87 [ELF_T_XWORD] = __alignof__ (ElfW2(Bits,Xword)), \
[all …]
DlibelfP.h45 #define __elfw2_(Bits, Name) __elf##Bits##_##Name argument
46 #define elfw2_(Bits, Name) elf##Bits##_##Name argument
47 #define ElfW2_(Bits, Name) Elf##Bits##_##Name argument
48 #define ELFW2_(Bits, Name) ELF##Bits##_##Name argument
49 #define ELFW_(Name, Bits) Name##Bits argument
50 #define __elfw2(Bits, Name) __elfw2_(Bits, Name) argument
51 #define elfw2(Bits, Name) elfw2_(Bits, Name) argument
52 #define ElfW2(Bits, Name) ElfW2_(Bits, Name) argument
53 #define ELFW2(Bits, Name) ELFW2_(Bits, Name) argument
54 #define ELFW(Name, Bits) ELFW_(Name, Bits) argument
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DBitVector.h81 MutableArrayRef<BitWord> Bits; // Actual bits. variable
95 WordRef = &b.Bits[Idx / BITWORD_SIZE]; in reference()
140 Bits = allocate(Capacity); in Size()
141 init_words(Bits, t); in Size()
149 Bits = MutableArrayRef<BitWord>(); in BitVector()
154 Bits = allocate(Capacity); in BitVector()
155 std::memcpy(Bits.data(), RHS.Bits.data(), Capacity * sizeof(BitWord)); in BitVector()
158 BitVector(BitVector &&RHS) : Bits(RHS.Bits), Size(RHS.Size) { in BitVector()
159 RHS.Bits = MutableArrayRef<BitWord>(); in BitVector()
163 ~BitVector() { std::free(Bits.data()); } 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.h54 BitWord Bits[BITWORDS_PER_ELEMENT]; member
58 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement()
64 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT); in SparseBitVectorElement()
72 if (Bits[i] != RHS.Bits[i])
84 return Bits[Idx]; in word()
93 if (Bits[i]) in empty()
99 Bits[Idx / BITWORD_SIZE] |= 1L << (Idx % BITWORD_SIZE); in set()
112 Bits[Idx / BITWORD_SIZE] &= ~(1L << (Idx % BITWORD_SIZE)); in reset()
116 return Bits[Idx / BITWORD_SIZE] & (1L << (Idx % BITWORD_SIZE)); in test()
122 NumBits += countPopulation(Bits[i]); in count()
[all …]
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>
103 struct DenseMapInfo<PointerEmbeddedInt<IntT, Bits>> {
[all …]
DSmallBitVector.h199 uintptr_t Bits = getSmallBits(); in count() local
200 return countPopulation(Bits); in count()
229 uintptr_t Bits = getSmallBits(); in find_first() local
230 if (Bits == 0) in find_first()
232 return countTrailingZeros(Bits); in find_first()
239 uintptr_t Bits = getSmallBits(); in find_last() local
240 if (Bits == 0) in find_last()
242 return NumBaseBits - countLeadingZeros(Bits) - 1; in find_last()
253 uintptr_t Bits = getSmallBits(); in find_first_unset() local
254 return countTrailingOnes(Bits); in find_first_unset()
[all …]
/third_party/node/deps/v8/src/codegen/arm64/
Ddecoder-arm64-inl.h18 if (instr->Bits(28, 27) == 0) { in Decode()
21 switch (instr->Bits(27, 24)) { in Decode()
112 DCHECK_EQ(0x0, instr->Bits(27, 24)); in DecodePCRelAddressing()
121 DCHECK_EQ(0x4, instr->Bits(27, 24) & 0xC); // 0x4, 0x5, 0x6, 0x7 in DecodeBranchSystemException()
123 switch (instr->Bits(31, 29)) { in DecodeBranchSystemException()
154 if ((instr->Bits(4, 2) != 0) || in DecodeBranchSystemException()
168 if (instr->Bits(23, 22) == 0) { in DecodeBranchSystemException()
170 if ((instr->Bits(21, 19) == 0x4) || in DecodeBranchSystemException()
191 if ((instr->Bit(24) == 0x1) || (instr->Bits(20, 16) != 0x1F) || in DecodeBranchSystemException()
192 (instr->Bits(15, 10) != 0) || (instr->Bits(4, 0) != 0) || in DecodeBranchSystemException()
[all …]
Dconstants-arm64.h153 V_(Rd, 4, 0, Bits) /* Destination register. */ \
154 V_(Rn, 9, 5, Bits) /* First source register. */ \
155 V_(Rm, 20, 16, Bits) /* Second source register. */ \
156 V_(Ra, 14, 10, Bits) /* Third source register. */ \
157 V_(Rt, 4, 0, Bits) /* Load dest / store source. */ \
158 V_(Rt2, 14, 10, Bits) /* Load second dest / */ \
160 V_(Rs, 20, 16, Bits) /* Store-exclusive status */ \
161 V_(PrefetchMode, 4, 0, Bits) \
164 V_(SixtyFourBits, 31, 31, Bits) \
165 V_(FlagsUpdate, 29, 29, Bits) \
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DSubtargetFeature.h44 uint64_t Bits[MAX_SUBTARGET_WORDS] = {}; variable
49 Bits[I] = B[I]; in FeatureBitset()
60 std::fill(std::begin(Bits), std::end(Bits), -1ULL); in set()
66 uint64_t NewBits = Bits[I / 64] | (uint64_t(1) << (I % 64)); in set()
67 Bits[I / 64] = NewBits; in set()
73 uint64_t NewBits = Bits[I / 64] & ~(uint64_t(1) << (I % 64)); in reset()
74 Bits[I / 64] = NewBits; in reset()
80 uint64_t NewBits = Bits[I / 64] ^ (uint64_t(1) << (I % 64)); in flip()
81 Bits[I / 64] = NewBits; in flip()
87 return (Bits[I / 64] & Mask) != 0;
[all …]
/third_party/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 …]
/third_party/node/deps/v8/src/codegen/arm/
Dconstants-arm.h453 inline int Bits(int hi, int lo) const { in Bits() function
475 inline int ConditionValue() const { return Bits(31, 28); } in ConditionValue()
482 inline int TypeValue() const { return Bits(27, 25); } in DECLARE_STATIC_TYPED_ACCESSOR()
483 inline int SpecialValue() const { return Bits(27, 23); } in SpecialValue()
485 inline int RnValue() const { return Bits(19, 16); } in RnValue()
487 inline int RdValue() const { return Bits(15, 12); } in DECLARE_STATIC_ACCESSOR()
490 inline int CoprocessorValue() const { return Bits(11, 8); } in DECLARE_STATIC_ACCESSOR()
493 inline int VnValue() const { return Bits(19, 16); } in VnValue()
494 inline int VmValue() const { return Bits(3, 0); } in VmValue()
495 inline int VdValue() const { return Bits(15, 12); } in VdValue()
[all …]
/third_party/node/deps/v8/src/diagnostics/arm/
Ddisasm-arm.cc236 int shift = instr->Bits(11, 7); in PrintShiftSat()
240 shift_names[instr->Bit(6) * 2], instr->Bits(11, 7)); in PrintShiftSat()
351 (instr->Bits(11, 9) == 0x5) && (instr->Bit(4) == 0x1)) { in FormatVFPRegister()
353 reg = instr->Bits(19, 16) | (instr->Bit(7) << 4); in FormatVFPRegister()
462 uint32_t lsbit = instr->Bits(11, 7); in FormatOption()
463 uint32_t width = instr->Bits(20, 16) + 1; in FormatOption()
493 instr->Bits(width + lsb - 1, lsb)); in FormatOption()
513 if ((instr->Bits(27, 25) == 0) && (instr->Bit(20) == 0) && in FormatOption()
514 (instr->Bits(7, 6) == 3) && (instr->Bit(4) == 1)) { in FormatOption()
546 (instr->Bits(19, 8) << 4) + instr->Bits(3, 0)); in FormatOption()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DFoldingSet.cpp61 Bits.push_back(I); in AddInteger()
64 Bits.push_back(I); in AddInteger()
88 Bits.push_back(Size); in AddString()
97 Bits.append(Base, Base + Units); in AddString()
111 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()
146 return FoldingSetNodeIDRef(Bits.data(), Bits.size()).ComputeHash(); in ComputeHash()
152 return *this == FoldingSetNodeIDRef(RHS.Bits.data(), RHS.Bits.size()); in operator ==()
[all …]
/third_party/node/deps/v8/src/codegen/loong64/
Dconstants-loong64.h737 inline int Bits(int hi, int lo) const { in Bits() function
757 return this->Bits(kRjShift + kRjBits - 1, kRjShift); in RjValue()
761 return this->Bits(kRkShift + kRkBits - 1, kRkShift); in RkValue()
765 return this->Bits(kRdShift + kRdBits - 1, kRdShift); in RdValue()
769 return this->Bits(kSaShift + kSa2Bits - 1, kSaShift); in Sa2Value()
773 return this->Bits(kSaShift + kSa3Bits - 1, kSaShift); in Sa3Value()
777 return this->Bits(kUi5Shift + kUi5Bits - 1, kUi5Shift); in Ui5Value()
781 return this->Bits(kUi6Shift + kUi6Bits - 1, kUi6Shift); in Ui6Value()
785 return this->Bits(kUi12Shift + kUi12Bits - 1, kUi12Shift); in Ui12Value()
789 return this->Bits(kLsbwShift + kLsbwBits - 1, kLsbwShift); in LsbwValue()
[all …]
/third_party/node/deps/v8/src/codegen/riscv64/
Dconstants-riscv64.h1408 inline int Bits(int hi, int lo) const { in Bits() function
1415 Bits(kBaseOpcodeShift + kBaseOpcodeBits - 1, kBaseOpcodeShift)); in BaseOpcodeValue()
1481 return this->Bits(kRs1Shift + kRs1Bits - 1, kRs1Shift); in Rs1Value()
1491 return this->Bits(kRs2Shift + kRs2Bits - 1, kRs2Shift); in Rs2Value()
1496 return this->Bits(kRs3Shift + kRs3Bits - 1, kRs3Shift); in Rs3Value()
1503 return this->Bits(kVs1Shift + kVs1Bits - 1, kVs1Shift); in Vs1Value()
1510 return this->Bits(kVs2Shift + kVs2Bits - 1, kVs2Shift); in Vs2Value()
1517 return this->Bits(kVdShift + kVdBits - 1, kVdShift); in VdValue()
1528 return this->Bits(kRdShift + kRdBits - 1, kRdShift); in RdValue()
1533 return this->Bits(kRvcRdShift + kRvcRdBits - 1, kRvcRdShift); in RvcRdValue()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/Utils/
DAArch64BaseInfo.cpp136 uint32_t Bits; in parseGenericRegister() local
142 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2; in parseGenericRegister()
144 return Bits; in parseGenericRegister()
147 std::string AArch64SysReg::genericRegisterString(uint32_t Bits) { in genericRegisterString() argument
148 assert(Bits < 0x10000); in genericRegisterString()
149 uint32_t Op0 = (Bits >> 14) & 0x3; in genericRegisterString()
150 uint32_t Op1 = (Bits >> 11) & 0x7; in genericRegisterString()
151 uint32_t CRn = (Bits >> 7) & 0xf; in genericRegisterString()
152 uint32_t CRm = (Bits >> 3) & 0xf; in genericRegisterString()
153 uint32_t Op2 = Bits & 0x7; in genericRegisterString()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
DWholeProgramDevirt.h108 VTableBits *Bits; member
114 return Bits < other.Bits || (Bits == other.Bits && Offset < other.Offset);
154 uint64_t minAfterBytes() const { return TM->Bits->ObjectSize - TM->Offset; } in minAfterBytes()
159 return minBeforeBytes() + TM->Bits->Before.Bytes.size(); in allocatedBeforeBytes()
165 return minAfterBytes() + TM->Bits->After.Bytes.size(); in allocatedAfterBytes()
171 TM->Bits->Before.setBit(Pos - 8 * minBeforeBytes(), RetVal); in setBeforeBit()
177 TM->Bits->After.setBit(Pos - 8 * minAfterBytes(), RetVal); in setAfterBit()
186 TM->Bits->Before.setLE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
188 TM->Bits->Before.setBE(Pos - 8 * minBeforeBytes(), RetVal, Size); in setBeforeBytes()
195 TM->Bits->After.setBE(Pos - 8 * minAfterBytes(), RetVal, Size); in setAfterBytes()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCSubtargetInfo.cpp36 void SetImpliedBits(FeatureBitset &Bits, const FeatureBitset &Implies, in SetImpliedBits() argument
40 Bits |= Implies; in SetImpliedBits()
43 SetImpliedBits(Bits, FE.Implies.getAsBitset(), FeatureTable); in SetImpliedBits()
48 void ClearImpliedBits(FeatureBitset &Bits, unsigned Value, in ClearImpliedBits() argument
52 Bits.reset(FE.Value); in ClearImpliedBits()
53 ClearImpliedBits(Bits, FE.Value, FeatureTable); in ClearImpliedBits()
58 static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, in ApplyFeatureFlag() argument
70 Bits.set(FeatureEntry->Value); in ApplyFeatureFlag()
73 SetImpliedBits(Bits, FeatureEntry->Implies.getAsBitset(), FeatureTable); in ApplyFeatureFlag()
75 Bits.reset(FeatureEntry->Value); in ApplyFeatureFlag()
[all …]
/third_party/node/deps/v8/src/codegen/mips/
Dconstants-mips.h1251 inline int Bits(int hi, int lo) const { in Bits() function
1301 Bits(kOpcodeShift + kOpcodeBits - 1, kOpcodeShift)); in OpcodeValue()
1389 return InstructionBase::Bits(kRsShift + kRsBits - 1, kRsShift); in RsValue()
1395 return this->Bits(kRtShift + kRtBits - 1, kRtShift); in RtValue()
1400 return this->Bits(kRdShift + kRdBits - 1, kRdShift); in RdValue()
1405 return this->Bits(kBaseShift + kBaseBits - 1, kBaseShift); in BaseValue()
1410 return this->Bits(kSaShift + kSaBits - 1, kSaShift); in SaValue()
1415 return this->Bits(kSaShift + kLsaSaBits - 1, kSaShift); in LsaSaValue()
1421 return this->Bits(kFunctionShift + kFunctionBits - 1, kFunctionShift); in FunctionValue()
1425 return this->Bits(kFdShift + kFdBits - 1, kFdShift); in FdValue()
[all …]
/third_party/node/deps/v8/src/codegen/s390/
Dconstants-s390.h1864 inline int Bits(int hi, int lo) const { in Bits() function
1870 inline U Bits(int hi, int lo) const { in Bits() function
1894 static inline int Bits(Instr instr, int hi, int lo) { in Bits() function
2036 return static_cast<SoftwareInterruptCodes>(Bits<FourByteInstr, int>(15, 0)); in SvcValue()
2054 return Bits<TwoByteInstr, T>(15 - (lo), 15 - (hi) + 1); \
2059 return Bits<FourByteInstr, T>(31 - (lo), 31 - (hi) + 1); \
2064 return Bits<SixByteInstr, T>(47 - (lo), 47 - (hi) + 1); \
2121 return Bits<TwoByteInstr, int>(7, 4); in R1Value()
2123 inline int R2Value() const { return Bits<TwoByteInstr, int>(3, 0); } in R2Value()
2125 return static_cast<Condition>(Bits<TwoByteInstr, int>(7, 4)); in M1Value()
[all …]

12345678910>>...14