This is the mail archive of the
mailing list for the Java project.
Re: libjava configure question
Andrew Haley wrote:
> Hmm, thats quite surprising. Are you sure this was using the real math
> library functions and not substituting FPU instructions? Do you have
> some test case that checks for conformance?
The first result comes from the standard library, the second from GMP,
calculated to high precision. The Java spec says that the answer must
be right +/- 1 ulp.
$ gcc trial.c -lmpfr -lgmp -lm
Ah, bummer. It works on x86_64, though:
$ gcc sintest.c -O2 -lm -lgmp -lmpfr
And we could still inline other math functions, besides the trig ones...?