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

[Bug libfortran/25017] sqrt, csqrt may give a wrong result if real part of compex argument is zero



------- Comment #6 from sgk at troutmask dot apl dot washington dot edu  2005-11-24 17:22 -------
Subject: Re:  sqrt, csqrt may give a wrong result if real part of compex
argument is zero

On Thu, Nov 24, 2005 at 05:05:12PM -0000, pinskia at gcc dot gnu dot org wrote:
> 
> (In reply to comment #4)
> > c99_functions.c contains implementations of csqrt[fl],
> > which are the fixed glibc routines.  We can remove
> > the "#if !defined(HAVE_CSQRTF)" and simply have gfortran
> > use its own versions.
> 
> For only targets which have a broken csqrtf yes.  Please don't do it all the
> time.
> 

I've never used glibc.  Does it define a _GLIBC_VERSION_MAJOR
and _GLIBC_VERSION_MINOR?  We could do

#if !defined(HAVE_CSQRTF) || (xx_MAJOR < 42 & xx_MINOR < 42)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25017


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