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

Side by Side 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 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 unified diff | Download patch
« no previous file with comments | « no previous file | crosstest/test_arith.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/crosstest/test_arith.h - Test prototypes ---------*- C++ -*-===// 1 //===- subzero/crosstest/test_arith.h - Test prototypes ---------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file declares the function prototypes used for crosstesting arithmetic 10 // This file declares the function prototypes used for crosstesting arithmetic
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 FPOP_TABLE 53 FPOP_TABLE
54 #undef X 54 #undef X
55 55
56 float mySqrt(float a); 56 float mySqrt(float a);
57 double mySqrt(double a); 57 double mySqrt(double a);
58 // mySqrt for v4f32 is currently unsupported. 58 // mySqrt for v4f32 is currently unsupported.
59 59
60 float myFabs(float a); 60 float myFabs(float a);
61 double myFabs(double a); 61 double myFabs(double a);
62 v4f32 myFabs(v4f32 a); 62 v4f32 myFabs(v4f32 a);
63
64 #define X(mult_by) \
65 bool testMultiplyBy##mult_by(bool a, bool); \
66 bool testMultiplyByNeg##mult_by(bool a, bool); \
67 uint8_t testMultiplyBy##mult_by(uint8_t a, uint8_t); \
68 uint8_t testMultiplyByNeg##mult_by(uint8_t a, uint8_t); \
69 uint16_t testMultiplyBy##mult_by(uint16_t a, uint16_t); \
70 uint16_t testMultiplyByNeg##mult_by(uint16_t a, uint16_t); \
71 uint32_t testMultiplyBy##mult_by(uint32_t a, uint32_t); \
72 uint32_t testMultiplyByNeg##mult_by(uint32_t a, uint32_t); \
73 uint64_t testMultiplyBy##mult_by(uint64_t a, uint64_t); \
74 uint64_t testMultiplyByNeg##mult_by(uint64_t a, uint64_t);
75 MULIMM_TABLE
76 #undef X
OLDNEW
« 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