Lines Matching refs:CPUFeatures

160 class CPUFeatures {
179 CPUFeatures() : features_(0) {} in CPUFeatures() function
182 CPUFeatures(Feature feature0,
189 static CPUFeatures All();
193 static CPUFeatures None() { return CPUFeatures(); } in None()
197 static CPUFeatures AArch64LegacyBaseline() { in AArch64LegacyBaseline()
198 return CPUFeatures(kFP, kNEON, kCRC32); in AArch64LegacyBaseline()
202 static CPUFeatures InferFromOS();
206 void Combine(const CPUFeatures& other);
216 void Remove(const CPUFeatures& other);
225 CPUFeatures With(const CPUFeatures& other) const;
226 CPUFeatures With(Feature feature0,
230 CPUFeatures Without(const CPUFeatures& other) const;
231 CPUFeatures Without(Feature feature0,
238 bool Has(const CPUFeatures& other) const;
248 bool operator==(const CPUFeatures& other) const {
251 bool operator!=(const CPUFeatures& other) const { return !(*this == other); }
264 const vixl::CPUFeatures& features);
267 std::ostream& operator<<(std::ostream& os, vixl::CPUFeatures::Feature feature);
268 std::ostream& operator<<(std::ostream& os, const vixl::CPUFeatures& features);
274 CPUFeaturesConstIterator(const CPUFeatures* cpu_features = NULL,
275 CPUFeatures::Feature start = CPUFeatures::kNone)
284 CPUFeatures::Feature operator++();
285 CPUFeatures::Feature operator++(int);
287 CPUFeatures::Feature operator*() const {
300 const CPUFeatures* cpu_features_;
301 CPUFeatures::Feature feature_;
304 return ((cpu_features_ == NULL) && (feature_ == CPUFeatures::kNone)) || in IsValid()
329 CPUFeatures::Feature feature0 = CPUFeatures::kNone,
330 CPUFeatures::Feature feature1 = CPUFeatures::kNone,
331 CPUFeatures::Feature feature2 = CPUFeatures::kNone,
332 CPUFeatures::Feature feature3 = CPUFeatures::kNone)
339 CPUFeaturesScope(T* cpu_features_wrapper, const CPUFeatures& other) in CPUFeaturesScope()
350 CPUFeatures* GetCPUFeatures() const { return cpu_features_; } in GetCPUFeatures()
352 void SetCPUFeatures(const CPUFeatures& cpu_features) { in SetCPUFeatures()
357 CPUFeatures* const cpu_features_;
358 const CPUFeatures old_features_;