This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]: PR29335 evaluate transcendentals at compile-time using MPFR [take 3]


On Fri, 20 Oct 2006, Kaveh R. GHAZI wrote:

> When using this precision, for the sin tests I was getting three of
> the results with errors of 0.50000 ... 000N, i.e. ever so slightly
> above 0.5.  To put that in context, sin has 1257 tests, cos has 1418,
> tan has 1596.  So 1254 of the sin tests were perfect, and the cos &
> tan results were all 100% perfect.

This sounds like an MPFR bug, which we should report upstream and get an 
upstream fix for rather than working around.  (I don't think this MPFR bug 
need block adding to GCC a patch which uses the precision of the relevant 
type rather than some magic higher precision; we can increase the required 
MPFR version to ensure a fix later.)

-- 
Joseph S. Myers
joseph@codesourcery.com


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