Changes in uspace/app/tester/float/float2.c [7a9ef81:d9be488] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/float/float2.c
r7a9ef81 rd9be488 57 57 const char *test_float2(void) 58 58 { 59 bool fail = false;60 61 59 for (unsigned int i = 0; i < OPERANDS; i++) { 62 60 double res = trunc(arguments[i]); … … 65 63 66 64 if (res_int != corr_int) { 67 TPRINTF("Double truncation failed (%" PRId64 " != %" PRId64 68 ", arg %u)\n", res_int, corr_int, i);69 fail = true;65 TPRINTF("Double truncation failed (%" PRId64 " != %" PRId64 ")\n", 66 res_int, corr_int); 67 return "Double truncation failed"; 70 68 } 71 69 } … … 77 75 78 76 if (res_int != corr_int) { 79 TPRINTF("Double sine failed (%" PRId64 " != %" PRId64 80 ", arg %u)\n", res_int, corr_int, i);81 fail = true;77 TPRINTF("Double sine failed (%" PRId64 " != %" PRId64 ")\n", 78 res_int, corr_int); 79 return "Double sine failed"; 82 80 } 83 81 } … … 89 87 90 88 if (res_int != corr_int) { 91 TPRINTF("Double cosine failed (%" PRId64 " != %" PRId64 92 ", arg %u)\n", res_int, corr_int, i);93 fail = true;89 TPRINTF("Double cosine failed (%" PRId64 " != %" PRId64 ")\n", 90 res_int, corr_int); 91 return "Double cosine failed"; 94 92 } 95 93 } 96 94 97 if (fail)98 return "Floating point imprecision";99 100 95 return NULL; 101 96 }
Note:
See TracChangeset
for help on using the changeset viewer.