OLD | NEW |
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 Loading... |
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 |
OLD | NEW |