This is the mail archive of the gcc@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]

Re: gcc handling of the sin, cos functions


On 19 Nov 1999, Alexandre Oliva wrote:

> On Nov 19, 1999, Richard Henderson <rth@cygnus.com> wrote:
> 
> > On Fri, Nov 19, 1999 at 01:11:44AM -0200, Alexandre Oliva wrote:
> >> Indeed.  But the docs say it is not a safe thing to do.  It would be
> >> nice if gcc could expand the safe versions of these functions in
> >> -fno-fast-math mode.
> 
> > The code would be too big; you'd gain nothing.
> 
> But then why does glibc define all those functions with inline asm?
> 

Just so we can turn those off using -D__NO_MATH_INLINES ;-) I have found 
the inline versions to be rather lacking in stability for extreme values, 
at least on the versions that I have installed, for our FP-intensive 
modeling codes. So does GNU Octave for example. 

Regards,
Mumit




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