Changeset 7a9ef81 in mainline for uspace/app/tester/float/float2.c
- Timestamp:
- 2014-12-16T21:54:56Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 26cf7a6
- Parents:
- f892ed3b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/float/float2.c
rf892ed3b r7a9ef81 57 57 const char *test_float2(void) 58 58 { 59 bool fail = false; 60 59 61 for (unsigned int i = 0; i < OPERANDS; i++) { 60 62 double res = trunc(arguments[i]); … … 63 65 64 66 if (res_int != corr_int) { 65 TPRINTF("Double truncation failed (%" PRId64 " != %" PRId64 ")\n",66 res_int, corr_int);67 return "Double truncation failed";67 TPRINTF("Double truncation failed (%" PRId64 " != %" PRId64 68 ", arg %u)\n", res_int, corr_int, i); 69 fail = true; 68 70 } 69 71 } … … 75 77 76 78 if (res_int != corr_int) { 77 TPRINTF("Double sine failed (%" PRId64 " != %" PRId64 ")\n",78 res_int, corr_int);79 return "Double sine failed";79 TPRINTF("Double sine failed (%" PRId64 " != %" PRId64 80 ", arg %u)\n", res_int, corr_int, i); 81 fail = true; 80 82 } 81 83 } … … 87 89 88 90 if (res_int != corr_int) { 89 TPRINTF("Double cosine failed (%" PRId64 " != %" PRId64 ")\n",90 res_int, corr_int);91 return "Double cosine failed";91 TPRINTF("Double cosine failed (%" PRId64 " != %" PRId64 92 ", arg %u)\n", res_int, corr_int, i); 93 fail = true; 92 94 } 93 95 } 94 96 97 if (fail) 98 return "Floating point imprecision"; 99 95 100 return NULL; 96 101 }
Note:
See TracChangeset
for help on using the changeset viewer.