Changeset 02ce8a0 in mainline
- Timestamp:
- 2012-11-25T00:10:37Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7462674
- Parents:
- 94b696c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/float/softfloat1.c
r94b696c r02ce8a0 39 39 #include "../tester.h" 40 40 41 #define OPERANDS 641 #define OPERANDS 10 42 42 #define PRECISION 10000 43 43 … … 56 56 cmptype_t *); 57 57 58 static float fop_a[OPERANDS] = 59 {3.5, -2.1, 100.0, 50.0, -1024.0, 0.0};60 61 static float fop_ b[OPERANDS] =62 {-2.1, 100.0, 50.0, -1024.0, 3.5, 0.0};63 64 static double dop_a[OPERANDS] = 65 {3.5, -2.1, 100.0, 50.0, -1024.0, 0.0}; 66 67 static double dop_b[OPERANDS] = 68 {-2.1, 100.0, 50.0, -1024.0, 3.5, 0.0}; 69 70 static unsigned int uop_a[OPERANDS] = 71 { 4, 2, 100, 50, 1024, 0};58 #define NUMBERS \ 59 3.5, -2.1, 100.0, 50.0, -1024.0, 0.0, 768.3156, 1080.499999, -600.0, 1.0 60 61 static float fop_a[OPERANDS] = { 62 NUMBERS 63 }; 64 65 static double dop_a[OPERANDS] = { 66 NUMBERS 67 }; 68 69 static unsigned int uop_a[OPERANDS] = { 70 4, -100, 100, 50, 1024, 0, 1000000, -1U, 0x80000000U, 500 71 }; 72 72 73 73 static cmptype_t cmpabs(cmptype_t a) … … 127 127 float_binary_op_t op = (float_binary_op_t) f; 128 128 129 op(fop_a[i], fop_ b[j], &c, &sc);129 op(fop_a[i], fop_a[j], &c, &sc); 130 130 131 131 *pic = (cmptype_t) (c * PRECISION); … … 142 142 double_binary_op_t op = (double_binary_op_t) f; 143 143 144 op(dop_a[i], dop_ b[j], &c, &sc);144 op(dop_a[i], dop_a[j], &c, &sc); 145 145 146 146 *pic = (cmptype_t) (c * PRECISION); … … 154 154 double_cmp_op_t op = (double_cmp_op_t) f; 155 155 156 op(dop_a[i], dop_ b[j], pis, piss);156 op(dop_a[i], dop_a[j], pis, piss); 157 157 } 158 158
Note:
See TracChangeset
for help on using the changeset viewer.