Lines Matching refs:presult

21 …est_case, const std::string& op, double input, double reference, const posit<nbits, es>& presult) {
28 decode(presult.get(), _sign, _regime, _exponent, _fraction);
36 << std::setw(FLOAT_TABLE_WIDTH) << double(presult)
37 << " raw " << std::setw(nbits) << presult.get()
43 …ng& test_case, const std::string& op, double input, double reference, const posit<2, 0>& presult) {
51 << std::setw(FLOAT_TABLE_WIDTH) << double(presult)
52 << " raw " << std::setw(nbits) << presult.get()
58 …ng& test_case, const std::string& op, double input, double reference, const posit<3, 1>& presult) {
66 << std::setw(FLOAT_TABLE_WIDTH) << double(presult)
67 << " raw " << std::setw(nbits) << presult.get()
74 …est_case, const std::string& op, double input, double reference, const posit<nbits, es>& presult) {
83 decode(presult.get(), _sign, _regime, _exponent, _fraction);
90 << std::setw(FLOAT_TABLE_WIDTH) << double(presult) << " reference value is "
92 << " raw " << std::setw(nbits) << presult.get()
102 << std::setw(FLOAT_TABLE_WIDTH) << double(presult) << " reference value is "
104 << " raw " << std::setw(nbits) << presult.get()
112 …& op, const posit<nbits, es>& rhs, const posit<nbits, es>& pref, const posit<nbits, es>& presult) {
118 << std::setw(FLOAT_TABLE_WIDTH) << presult
119 << " " << pref.get() << " vs " << presult.get() << std::endl;
123 …& op, const posit<nbits, es>& rhs, const posit<nbits, es>& pref, const posit<nbits, es>& presult) {
128 << std::setw(FLOAT_TABLE_WIDTH) << presult << " reference value is "
130 << " " << pretty_print(presult) << std::endl;
134 … lhs, const posit<nbits, es>& rhs, const posit<nbits, es>& pref, const posit<nbits, es>& presult) {
142 << std::setw(FLOAT_TABLE_WIDTH) << presult
143 << " " << pref.get() << " vs " << presult.get()
149 … lhs, const posit<nbits, es>& rhs, const posit<nbits, es>& pref, const posit<nbits, es>& presult) {
156 << std::setw(nbits) << presult.get()
157 << " " << pretty_print(presult,20) << std::endl;
161 … lhs, const posit<nbits, es>& rhs, const posit<nbits, es>& pref, const posit<nbits, es>& presult) {
168 << std::setw(FLOAT_TABLE_WIDTH) << presult << " reference value is "
170 << " " << pref.get() << " vs " << presult.get()
176 … lhs, const posit<nbits, es>& rhs, const posit<nbits, es>& pref, const posit<nbits, es>& presult) {
182 << std::setw(nbits) << presult.get() << " reference value is "
184 << " " << pretty_print(presult,20) << std::endl;
196 …int Compare(double input, const posit<nbits, es>& presult, double reference, bool bReportIndividua… in Compare() argument
198 double result = double(presult); in Compare()
201 if (bReportIndividualTestCases) ReportConversionError("FAIL", "=", input, reference, presult); in Compare()
367 posit<nbits, es> presult(ref); in VerifyIntegerConversion() local
368 if (ref != presult) { in VerifyIntegerConversion()
369 …std::cout << " FAIL long(" << ref << ") != long(" << presult << ") : reference = -2147483648" << s… in VerifyIntegerConversion()
376 presult = ref; // assign this integer to a posit in VerifyIntegerConversion()
377 if (ref != presult) { // compare the integer cast to the reference posit in VerifyIntegerConversion()
378 …if (bReportIndividualTestCases) std::cout << " FAIL long(" << p << ") != long(" << presult << ") :… in VerifyIntegerConversion()
442 posit<nbits, es> p, presult; in VerifyUintConversion() local
450 presult = ref; // assign this integer to a reference posit in VerifyUintConversion()
451 if (presult != ref) { // compare the integer cast to the reference posit in VerifyUintConversion()
452 …if (bReportIndividualTestCases) std::cout << " FAIL uint32(" << p << ") != uint32(" << presult << … in VerifyUintConversion()
470 presult = ref; // assign this integer to a reference posit in VerifyUintConversion()
471 if (presult != ref) { // compare the integer cast to the reference posit in VerifyUintConversion()
472 …ividualTestCases) std::cout << " FAIL uint32(" << p << ") != uint32(" << presult << ") : reference… in VerifyUintConversion()
1126 bool presult = (a == b); in VerifyPositLogicEqual() local
1127 if (ref != presult) { in VerifyPositLogicEqual()
1129 …std::cout << a << " == " << b << " fails: reference is " << ref << " actual is " << presult << std… in VerifyPositLogicEqual()
1172 bool presult = (a != b); in VerifyPositLogicNotEqual() local
1173 if (ref != presult) { in VerifyPositLogicNotEqual()
1175 …std::cout << a << " != " << b << " fails: reference is " << ref << " actual is " << presult << std… in VerifyPositLogicNotEqual()
1209 bool presult = (a < b); in VerifyPositLogicLessThan() local
1210 if (ref != presult) { in VerifyPositLogicLessThan()
1212 …std::cout << a << " < " << b << " fails: reference is " << ref << " actual is " << presult << std:… in VerifyPositLogicLessThan()
1238 bool presult = (a > b); in VerifyPositLogicGreaterThan() local
1239 if (ref != presult) { in VerifyPositLogicGreaterThan()
1241 …std::cout << a << " > " << b << " fails: reference is " << ref << " actual is " << presult << std:… in VerifyPositLogicGreaterThan()
1268 bool presult = (a <= b); in VerifyPositLogicLessOrEqualThan() local
1269 if (ref != presult) { in VerifyPositLogicLessOrEqualThan()
1271 …std::cout << a << " <= " << b << " fails: reference is " << ref << " actual is " << presult << std… in VerifyPositLogicLessOrEqualThan()
1298 bool presult = (a >= b); in VerifyPositLogicGreaterOrEqualThan() local
1299 if (ref != presult) { in VerifyPositLogicGreaterOrEqualThan()
1301 …std::cout << a << " >= " << b << " fails: reference is " << ref << " actual is " << presult << std… in VerifyPositLogicGreaterOrEqualThan()