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

1234

/external/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.h32 BitWord *Bits; // Actual bits. member in class:llvm::BitVector
48 WordRef = &b.Bits[Idx / BITWORD_SIZE];
75 Bits = 0;
82 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
83 init_words(Bits, Capacity, t);
91 Bits = 0;
97 Bits = (BitWord *)std::malloc(Capacity * sizeof(BitWord));
98 std::memcpy(Bits, RHS.Bits, Capacity * sizeof(BitWord));
103 : Bits(RH
[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...]
H A DSmallBitVector.h180 uintptr_t Bits = getSmallBits(); local
182 return CountPopulation_32(Bits);
184 return CountPopulation_64(Bits);
215 uintptr_t Bits = getSmallBits(); local
216 if (Bits == 0)
219 return CountTrailingZeros_32(Bits);
221 return CountTrailingZeros_64(Bits);
231 uintptr_t Bits = getSmallBits(); local
233 Bits &= ~uintptr_t(0) << (Prev + 1);
234 if (Bits
[all...]
/external/clang/lib/Basic/
H A DLangOptions.cpp18 #define LANGOPT(Name, Bits, Default, Description) Name = Default;
19 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) set##Name(Default);
24 #define LANGOPT(Name, Bits, Default, Description)
25 #define BENIGN_LANGOPT(Name, Bits, Default, Description) Name = Default;
26 #define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
/external/elfutils/libelf/
H A Dgelf_xlate.c87 #define FETCH(Bits, ptr) (*(const uint##Bits##_t *) ptr)
88 #define STORE(Bits, ptr, val) (*(uint##Bits##_t *) ptr = val)
99 #define FETCH(Bits, ptr) (((const union unaligned *) ptr)->u##Bits)
100 #define STORE(Bits, ptr, val) (((union unaligned *) ptr)->u##Bits = val)
110 #define FUNDAMENTAL(NAME, Name, Bits) \
111 INLINE2 (ELFW2(Bits,FSZ
[all...]
H A Dabstract.h52 #define Ehdr(Bits, Ext) \
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, Ex
[all...]
H A Dexttypes.h73 #define START(Bits, Name, EName) typedef struct {
74 #define END(Bits, Name) } ElfW2(Bits, Name)
H A DlibelfP.h71 #define __elfw2_(Bits, Name) __elf##Bits##_##Name
72 #define elfw2_(Bits, Name) elf##Bits##_##Name
73 #define ElfW2_(Bits, Name) Elf##Bits##_##Name
74 #define ELFW2_(Bits, Name) ELF##Bits##_##Name
75 #define ELFW_(Name, Bits) Name##Bits
[all...]
H A Delf_getdata.c104 # define TYPE_ALIGNS(Bits) \
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,Verde
[all...]
/external/dexmaker/src/dx/java/com/android/dx/util/
H A DBitIntSet.java35 bits = Bits.makeBitSet(max);
41 Bits.set(bits, value, true);
50 if (value >= Bits.getMax(bits)) {
51 int[] newBits = Bits.makeBitSet(
52 Math.max(value + 1, 2 * Bits.getMax(bits)));
60 if (value < Bits.getMax(bits)) {
61 Bits.set(bits, value, false);
67 return (value < Bits.getMax(bits)) && Bits.get(bits, value);
74 ensureCapacity(Bits
[all...]
H A DBits.java22 public final class Bits { class
26 private Bits() { method in class:Bits
224 if (Bits.get(bits, i)) {
/external/clang/include/clang/Basic/
H A DLangOptions.h31 #define LANGOPT(Name, Bits, Default, Description) unsigned Name : Bits;
32 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description)
38 #define LANGOPT(Name, Bits, Default, Description)
39 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
40 unsigned Name : Bits;
82 #define LANGOPT(Name, Bits, Default, Description)
83 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
/external/v8/src/arm/
H A Dconstants-arm.h544 inline int Bits(int hi, int lo) const { function in class:v8::internal::Instruction
561 static inline int Bits(Instr instr, int hi, int lo) { function in class:v8::internal::Instruction
587 return static_cast<Condition>(Bits(31, 28));
595 inline int TypeValue() const { return Bits(27, 25); }
597 inline int RnValue() const { return Bits(19, 16); }
599 inline int RdValue() const { return Bits(15, 12); }
602 inline int CoprocessorValue() const { return Bits(11, 8); }
605 inline int VnValue() const { return Bits(19, 16); }
606 inline int VmValue() const { return Bits(3, 0); }
607 inline int VdValue() const { return Bits(1
[all...]
H A Dconstants-arm.cc47 high16 = (Bits(17, 16) << 4) | Bits(3, 0); // xxxxxxxx,xxcdefgh.
/external/llvm/include/llvm/
H A DAttributes.h46 Attributes() : Bits(0) { }
47 explicit Attributes(uint64_t Val) : Bits(Val) { }
48 /*implicit*/ Attributes(Attribute::AttrConst Val) : Bits(Val.v) { }
50 operator const void *() const { return Bits ? this : 0; }
51 bool isEmptyOrSingleton() const { return (Bits & (Bits - 1)) == 0; }
53 return Bits == Attrs.Bits;
56 return Bits != Attrs.Bits;
79 uint64_t Bits; member in class:llvm::Attributes
[all...]
/external/llvm/lib/Support/
H A DFoldingSet.cpp59 Bits.append(reinterpret_cast<unsigned *>(&Ptr),
63 Bits.push_back(I);
66 Bits.push_back(I);
86 Bits.push_back(unsigned(I >> 32));
91 Bits.push_back(Size);
100 Bits.append(Base, Base + Units);
112 Bits.push_back(V);
121 Bits.push_back(V);
137 Bits.push_back(V);
142 Bits
[all...]
/external/chromium/sdch/open-vcdiff/src/gtest/internal/
H A Dgtest-internal.h324 typedef typename TypeWithSize<sizeof(RawType)>::UInt Bits; typedef in class:testing::internal::FloatingPoint
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) {
389 const Bits &bits() const { return bits_; }
392 Bits exponent_bits() const { return kExponentBitMask & bits_; }
395 Bits fraction_bit
[all...]
/external/llvm/lib/MC/
H A DSubtargetFeature.cpp191 void SetImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, argument
200 Bits |= FE.Value;
201 SetImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize);
210 void ClearImpliedBits(uint64_t &Bits, const SubtargetFeatureKV *FeatureEntry, argument
219 Bits &= ~FE.Value;
220 ClearImpliedBits(Bits, &FE, FeatureTable, FeatureTableSize);
228 SubtargetFeatures::ToggleFeature(uint64_t Bits, const StringRef Feature, argument
236 if ((Bits & FeatureEntry->Value) == FeatureEntry->Value) {
237 Bits &= ~FeatureEntry->Value;
240 ClearImpliedBits(Bits, FeatureEntr
277 uint64_t Bits = 0; // Resulting bits local
[all...]
/external/valgrind/main/none/tests/x86-linux/
H A Dseg_override.c33 } Bits; member in union:_LDT_ENTRY::__anon14216
40 (unsigned long)ent->HighWord.Bits.BaseMid << 16 |
41 (unsigned long)ent->HighWord.Bits.BaseHi << 24);
45 unsigned int limit = ent->LimitLow | (ent->HighWord.Bits.LimitHi << 16);
46 if (ent->HighWord.Bits.Granularity) limit = (limit << 12) | 0xfff;
/external/valgrind/main/coregrind/m_initimg/
H A Dsimple_huffman.c74 UInt Bits; member in struct:__anon13654
192 sym[k].Bits = 0;
239 sym[first].Bits = bits;
324 sym[*symnum].Bits = bits;
395 if( sym[k].Bits > 32 )
423 sym[symbol].Bits );
466 sym[k].Bits = 0x7fffffff;
479 if( sym[k].Bits > sym[k+1].Bits )
499 delta_bits = sym[m].Bits
[all...]
/external/dexmaker/src/dx/java/com/android/dx/rop/code/
H A DLocalVariableExtractor.java19 import com.android.dx.util.Bits;
66 this.workSet = Bits.makeBitSet(maxLabel);
77 label = Bits.findFirst(workSet, 0)) {
78 Bits.clear(workSet, label);
187 Bits.set(workSet, succ);
/external/v8/src/mips/
H A Dconstants-mips.h618 inline int Bits(int hi, int lo) const {
637 Bits(kOpcodeShift + kOpcodeBits - 1, kOpcodeShift));
643 return Bits(kRsShift + kRsBits - 1, kRsShift);
649 return Bits(kRtShift + kRtBits - 1, kRtShift);
654 return Bits(kRdShift + kRdBits - 1, kRdShift);
659 return Bits(kSaShift + kSaBits - 1, kSaShift);
665 return Bits(kFunctionShift + kFunctionBits - 1, kFunctionShift);
669 return Bits(kFdShift + kFdBits - 1, kFdShift);
673 return Bits(kFsShift + kFsBits - 1, kFsShift);
677 return Bits(kFtShif
[all...]
/external/protobuf/gtest/include/gtest/internal/
H A Dgtest-internal.h337 typedef typename TypeWithSize<sizeof(RawType)>::UInt Bits; typedef in class:testing::internal::FloatingPoint
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) {
402 const Bits &bits() const { return u_.bits_; }
405 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; }
408 Bits fraction_bit
[all...]
/external/webkit/Source/WebCore/platform/image-decoders/haiku/
H A DImageDecoderHaiku.cpp40 uint8* destination = reinterpret_cast<uint8*>(bitmap->Bits());

Completed in 653 milliseconds

1234