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

Unified Diff: base/cpu.h

Issue 91913002: net: boost AES-GCM ciphers if the machine has AES-NI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add new symbol to .def Created 7 years, 1 month 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 | base/cpu.cc » ('j') | net/socket/nss_ssl_util.cc » ('J')
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 aec24d2f89c3eb435cc5f2f800f04f0f69330bad..595ed97b7ce2c1c2ddb1939d0ce47cd8b51eff65 100644
--- a/base/cpu.h
+++ b/base/cpu.h
@@ -52,6 +52,7 @@ class BASE_EXPORT CPU {
// Note: you should never need to call this function. It was added in order
// to workaround a bug in NSS but |has_avx()| is what you want.
bool has_avx_hardware() const { return has_avx_hardware_; }
+ bool has_aesni() const { return has_aesni_; }
bool has_non_stop_time_stamp_counter() const {
return has_non_stop_time_stamp_counter_;
}
@@ -78,6 +79,7 @@ class BASE_EXPORT CPU {
bool has_sse42_;
bool has_avx_;
bool has_avx_hardware_;
+ bool has_aesni_;
bool has_non_stop_time_stamp_counter_;
std::string cpu_vendor_;
std::string cpu_brand_;
« no previous file with comments | « no previous file | base/cpu.cc » ('j') | net/socket/nss_ssl_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698