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

Unified Diff: crosstest/test_bitmanip.cpp

Issue 401533002: Lower byte swap intrinsic. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: rebased Created 6 years, 5 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 | « crosstest/test_bitmanip.h ('k') | crosstest/test_bitmanip.def » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_bitmanip.cpp
diff --git a/crosstest/test_bitmanip.cpp b/crosstest/test_bitmanip.cpp
index 2ebe8a479a47ce184be1af1e3ae4c3d72f1e0682..7106767b305cc7df00774441e06c91e663eba91e 100644
--- a/crosstest/test_bitmanip.cpp
+++ b/crosstest/test_bitmanip.cpp
@@ -38,3 +38,8 @@
FOR_ALL_BMI_OP_TYPES(X)
#undef X
+
+#define X(type, builtin_name) \
+ type test_bswap(type a) { return builtin_name(a); }
+BSWAP_TABLE
+#undef X
« no previous file with comments | « crosstest/test_bitmanip.h ('k') | crosstest/test_bitmanip.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698