Chromium Code Reviews| Index: base/cpu.h |
| diff --git a/base/cpu.h b/base/cpu.h |
| index 957b1a564c9a6b23a03f9a56d1972d586240e4df..53a0a2010aefa16939d42645f669fc11ea9206d0 100644 |
| --- a/base/cpu.h |
| +++ b/base/cpu.h |
| @@ -17,6 +17,18 @@ class BASE_EXPORT CPU { |
| // Constructor |
| CPU(); |
| + enum IntelMicroArchitecture { |
| + Pentium, |
|
apatrick_chromium
2013/01/31 19:58:42
Pentium -> PENTIUM
|
| + SSE, |
| + SSE2, |
| + SSE3, |
| + SSSE3, |
| + SSE41, |
| + SSE42, |
| + AVX, |
| + MaxIntelMicroArchitecture |
|
apatrick_chromium
2013/01/31 19:58:42
MaxIntelMicroArchitecture -> MAX_INTEL_MICRO_ARCHI
|
| + }; |
| + |
| // Accessors for CPU information. |
| const std::string& vendor_name() const { return cpu_vendor_; } |
| int stepping() const { return stepping_; } |
| @@ -32,6 +44,8 @@ class BASE_EXPORT CPU { |
| bool has_ssse3() const { return has_ssse3_; } |
| bool has_sse41() const { return has_sse41_; } |
| bool has_sse42() const { return has_sse42_; } |
| + bool has_avx() const { return has_avx_; } |
| + IntelMicroArchitecture getIntelMicroArchitecture() const; |
|
apatrick_chromium
2013/01/31 19:58:42
getIntelMicroArchitecture -> GetIntelMicroArchitec
|
| const std::string& cpu_brand() const { return cpu_brand_; } |
| private: |
| @@ -51,6 +65,7 @@ class BASE_EXPORT CPU { |
| bool has_ssse3_; |
| bool has_sse41_; |
| bool has_sse42_; |
| + bool has_avx_; |
| std::string cpu_vendor_; |
| std::string cpu_brand_; |
| }; |