Merge pull request #88 from joshtriplett/such-precision-many-fail-wow
testsuite/libffi.call/many.c: Avoid spurious failure due to excess precision
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2014-03-16 Josh Triplett <josh@joshtriplett.org>
|
||||
|
||||
* testsuite/libffi.call/many.c: Avoid spurious failure due to excess
|
||||
floating-point precision.
|
||||
* testsuite/libffi.call/many_win32.c: Ditto.
|
||||
|
||||
2014-03-16 Josh Triplett <josh@joshtriplett.org>
|
||||
|
||||
* libtool-ldflags: Re-add.
|
||||
|
||||
@@ -32,7 +32,7 @@ static float many(float f1,
|
||||
(double) f11, (double) f12, (double) f13);
|
||||
#endif
|
||||
|
||||
return f1/f2+f3/f4+f5/f6+f7/f8+f9/f10+f11/f12+f13;
|
||||
return f1+f2+f3+f4+f5+f6+f7+f8+f9+f10+f11+f12+f13;
|
||||
}
|
||||
|
||||
int main (void)
|
||||
|
||||
@@ -23,7 +23,7 @@ static float __attribute__((stdcall)) stdcall_many(float f1,
|
||||
float f12,
|
||||
float f13)
|
||||
{
|
||||
return ((f1/f2+f3/f4+f5/f6+f7/f8+f9/f10+f11/f12) * f13);
|
||||
return f1+f2+f3+f4+f5+f6+f7+f8+f9+f10+f11+f12+f13;
|
||||
}
|
||||
|
||||
int main (void)
|
||||
|
||||
Reference in New Issue
Block a user