Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2707)

Unified Diff: base/cpu.h

Issue 10537082: Remove duplicate CPU detection code; use base::CPU instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: int->bool Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/cpu_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/cpu.h
diff --git a/base/cpu.h b/base/cpu.h
index 9567f8b590bb5fb48c4bec6158422187ec2ab7f8..8fad2a92fab87fba90613a8877ee2da9ca5b60e7 100644
--- a/base/cpu.h
+++ b/base/cpu.h
@@ -26,13 +26,13 @@ class BASE_EXPORT CPU {
int type() const { return type_; }
int extended_model() const { return ext_model_; }
int extended_family() const { return ext_family_; }
- int has_mmx() const { return has_mmx_; }
- int has_sse() const { return has_sse_; }
- int has_sse2() const { return has_sse2_; }
- int has_sse3() const { return has_sse3_; }
- int has_ssse3() const { return has_ssse3_; }
- int has_sse41() const { return has_sse41_; }
- int has_sse42() const { return has_sse42_; }
+ bool has_mmx() const { return has_mmx_; }
+ bool has_sse() const { return has_sse_; }
+ bool has_sse2() const { return has_sse2_; }
+ bool has_sse3() const { return has_sse3_; }
+ bool has_ssse3() const { return has_ssse3_; }
+ bool has_sse41() const { return has_sse41_; }
+ bool has_sse42() const { return has_sse42_; }
private:
// Query the processor for CPUID information.
« no previous file with comments | « no previous file | media/base/cpu_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698