libjava configure question
Bryce McKinlay
mckinlay@redhat.com
Fri May 27 00:32:00 GMT 2005
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
> $ ./a.out
>-0.005361336007789623
>-9.0443124860860158093619738795260971475e-1
>>
Ah, bummer. It works on x86_64, though:
$ gcc sintest.c -O2 -lm -lgmp -lmpfr
$ ./a.out
-0.9044312486086016
-9.0443124860860158093619738795260971475e-1
And we could still inline other math functions, besides the trig ones...?
Bryce
More information about the Java
mailing list