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

Unified Diff: components/nacl/renderer/platform_info.cc

Issue 2458333002: Add popcnt support for pnacl (Closed)
Patch Set: Add popcnt test for clang Created 4 years, 2 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 | « base/cpu_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/platform_info.cc
diff --git a/components/nacl/renderer/platform_info.cc b/components/nacl/renderer/platform_info.cc
index da3280923977ae80af283cdfea4342dd79525a4a..d4eba29c92f072eeefece4a547c0fb039dbdea6e 100644
--- a/components/nacl/renderer/platform_info.cc
+++ b/components/nacl/renderer/platform_info.cc
@@ -75,7 +75,9 @@ std::string GetCpuFeatures() {
// TODO: SSE 3
else if (cpu.has_sse2()) features.push_back("+sse2");
- // TODO: AES, POPCNT, LZCNT, ...
+ if (cpu.has_popcnt()) features.push_back("+popcnt");
+
+ // TODO: AES, LZCNT, ...
return base::JoinString(features, ",");
}
« no previous file with comments | « base/cpu_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698