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

Unified Diff: crosstest/test_arith.h

Issue 1469113003: Subzero. ARM32. Strength reduce multiplications. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 5 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 | crosstest/test_arith.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_arith.h
diff --git a/crosstest/test_arith.h b/crosstest/test_arith.h
index e34841828bfaea59b4a3838cb091f9b430e5b9eb..60d3bb1121e4458c38ac6a3c28e24dad48dfb139 100644
--- a/crosstest/test_arith.h
+++ b/crosstest/test_arith.h
@@ -60,3 +60,17 @@ double mySqrt(double a);
float myFabs(float a);
double myFabs(double a);
v4f32 myFabs(v4f32 a);
+
+#define X(mult_by) \
+ bool testMultiplyBy##mult_by(bool a, bool); \
+ bool testMultiplyByNeg##mult_by(bool a, bool); \
+ uint8_t testMultiplyBy##mult_by(uint8_t a, uint8_t); \
+ uint8_t testMultiplyByNeg##mult_by(uint8_t a, uint8_t); \
+ uint16_t testMultiplyBy##mult_by(uint16_t a, uint16_t); \
+ uint16_t testMultiplyByNeg##mult_by(uint16_t a, uint16_t); \
+ uint32_t testMultiplyBy##mult_by(uint32_t a, uint32_t); \
+ uint32_t testMultiplyByNeg##mult_by(uint32_t a, uint32_t); \
+ uint64_t testMultiplyBy##mult_by(uint64_t a, uint64_t); \
+ uint64_t testMultiplyByNeg##mult_by(uint64_t a, uint64_t);
+MULIMM_TABLE
+#undef X
« no previous file with comments | « no previous file | crosstest/test_arith.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698