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: [RFC]: patch to calculate Nth roots at compile-time for pow(x,1/n)


On Sunday 14 September 2003 8:14 pm, Toon Moene wrote:
> Joseph S. Myers wrote:
>  > Effectively such
> >
> > reimplementation would lead (after tree-ssa is merged to mainline) to
> > *three* separate implementations of every function being available in
> > GCC rather than one: that in GMP (used by gfortran), that in gfortran
> > (as it currently has its own implementations - not guaranteeing correct
> > rounding - of various functions using core GMP functions rather than
> > using the MPFR functions included with GMP)
>
> Could you point us to such misusage ?  I wasn't aware of them and
> perhaps other gfortran maintainers also missed this ...

I'm certainly aware of this. Last time it was discussed was before gfortran 
was merged into the tree-ssa branch. We decided not to use the MPFR 
functions because a major distro (redhat IIRC) supplies GMP without the 
MPFR additions.

Putting GMP into the gcc tree would of course avoid this problem and allow 
us to use the proper functions.

Paul


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