Lines Matching refs:CPUFeatures

35 static uint64_t MakeFeatureMask(CPUFeatures::Feature feature) {  in MakeFeatureMask()
36 if (feature == CPUFeatures::kNone) { in MakeFeatureMask()
40 VIXL_STATIC_ASSERT(CPUFeatures::kNumberOfFeatures <= in MakeFeatureMask()
42 VIXL_ASSERT(feature < CPUFeatures::kNumberOfFeatures); in MakeFeatureMask()
47 CPUFeatures::CPUFeatures(Feature feature0, in CPUFeatures() function in vixl::CPUFeatures
55 CPUFeatures CPUFeatures::All() { in All()
56 CPUFeatures all; in All()
58 VIXL_STATIC_ASSERT(CPUFeatures::kNumberOfFeatures < (sizeof(uint64_t) * 8)); in All()
63 CPUFeatures CPUFeatures::InferFromOS() { in InferFromOS()
65 return CPUFeatures(); in InferFromOS()
68 void CPUFeatures::Combine(const CPUFeatures& other) { in Combine()
72 void CPUFeatures::Combine(Feature feature0, in Combine()
82 void CPUFeatures::Remove(const CPUFeatures& other) { in Remove()
86 void CPUFeatures::Remove(Feature feature0, in Remove()
96 CPUFeatures CPUFeatures::With(const CPUFeatures& other) const { in With()
97 CPUFeatures f(*this); in With()
102 CPUFeatures CPUFeatures::With(Feature feature0, in With()
106 CPUFeatures f(*this); in With()
111 CPUFeatures CPUFeatures::Without(const CPUFeatures& other) const { in Without()
112 CPUFeatures f(*this); in Without()
117 CPUFeatures CPUFeatures::Without(Feature feature0, in Without()
121 CPUFeatures f(*this); in Without()
126 bool CPUFeatures::Has(const CPUFeatures& other) const { in Has()
130 bool CPUFeatures::Has(Feature feature0, in Has()
139 size_t CPUFeatures::Count() const { return CountSetBits(features_); } in Count()
141 std::ostream& operator<<(std::ostream& os, CPUFeatures::Feature feature) { in operator <<()
145 case CPUFeatures::SYMBOL: \ in operator <<()
149 case CPUFeatures::kNone: in operator <<()
151 case CPUFeatures::kNumberOfFeatures: in operator <<()
159 CPUFeatures::const_iterator CPUFeatures::begin() const { in begin()
163 vixl::CPUFeatures::Feature feature = in begin()
164 static_cast<CPUFeatures::Feature>(feature_number); in begin()
168 CPUFeatures::const_iterator CPUFeatures::end() const { in end()
172 std::ostream& operator<<(std::ostream& os, const CPUFeatures& features) { in operator <<()
173 CPUFeatures::const_iterator it = features.begin(); in operator <<()
188 CPUFeatures::Feature CPUFeaturesConstIterator::operator++() { // Prefix in operator ++()
192 feature_ = static_cast<CPUFeatures::Feature>(feature_ + 1); in operator ++()
193 if (feature_ == CPUFeatures::kNumberOfFeatures) { in operator ++()
194 feature_ = CPUFeatures::kNone; in operator ++()
195 VIXL_STATIC_ASSERT(CPUFeatures::kNone == -1); in operator ++()
197 VIXL_ASSERT(CPUFeatures::kNone <= feature_); in operator ++()
198 VIXL_ASSERT(feature_ < CPUFeatures::kNumberOfFeatures); in operator ++()
205 CPUFeatures::Feature CPUFeaturesConstIterator::operator++(int) { // Postfix in operator ++()
206 CPUFeatures::Feature result = feature_; in operator ++()