[PATCH] Fix ceill() for ldbl-96
Gwenole Beauchesne
gbeauchesne@mandrakesoft.com
Thu Nov 13 08:49:00 GMT 2003
On Thu, 13 Nov 2003, Andreas Jaeger wrote:
> But that test passes even without the patch for me on amd64, so why
> does it fail for you Gwenore?
Hmm checking, but one reason may be that your compiler used a builtin.
e.g. ceill(0.25) is optimized into ceilf(0.25) which yields a valid
result. Do we run the math testsuite with -fno-builtin?
Please try the following:
extern long double ceill(long double x);
extern void abort(void);
int main()
{
if ((int)ceill(0.25) != 1)
abort();
return 0;
}
More information about the Libc-alpha
mailing list