This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix ceill() for ldbl-96


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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]