Fixes FATE on a variety of configurations due to accuracy problems in floating point math. Most constants tested against here are not even specified with 7 decimal digits.
Unified · Split
| @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) · 69 unmodified lines | |||
| 70 | printf("trc=%s calling func(%f) expected=%f roundtrip=%f\n", | 70 | printf("trc=%s calling func(%f) expected=%f roundtrip=%f\n", |
| 71 | name, test_data[i], result, roundtrip); | 71 | name, test_data[i], result, roundtrip); |
| 72 | 72 | ||
| 73 | if (result > 0.0 && fabs(roundtrip - test_data[i]) > 1e-8) { | 73 | if (result > 0.0 && fabs(roundtrip - test_data[i]) > 1e-7) { |
| 74 | printf(" FAIL\n"); | 74 | printf(" FAIL\n"); |
| 75 | return 1; | 75 | return 1; |
| 76 | } | 76 | } |