cvs commit: src/lib/msun/i387 invtrig.c src/lib/msun/ld80
invtrig.h src/lib/msun/src e_acosl.c e_atan2l.c
David Schultz
das at FreeBSD.org
Sat Aug 2 03:56:35 UTC 2008
das 2008-08-02 03:56:22 UTC
FreeBSD src repository
Modified files:
lib/msun/ld80 invtrig.h
lib/msun/src e_acosl.c e_atan2l.c
Added files:
lib/msun/i387 invtrig.c
Log:
SVN rev 181152 on 2008-08-02 03:56:22Z by das
On i386, gcc truncates long double constants to double precision
at compile time regardless of the dynamic precision, and there's
no way to disable this misfeature at compile time. Hence, it's
impossible to generate the appropriate tables of constants for the
long double inverse trig functions in a straightforward way on i386;
this change hacks around the problem by encoding the underlying bits
in the table.
Note that these functions won't pass the regression test on i386,
even with the FPU set to extended precision, because the regression
test is similarly damaged by gcc. However, the tests all pass when
compiled with a modified version of gcc.
Reported by: bde
Revision Changes Path
1.1 +86 -0 src/lib/msun/i387/invtrig.c (new)
1.2 +17 -4 src/lib/msun/ld80/invtrig.h
1.2 +12 -2 src/lib/msun/src/e_acosl.c
1.2 +12 -2 src/lib/msun/src/e_atan2l.c
More information about the cvs-src
mailing list