This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/24313] complex sqrt function does not return principal value
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2005 18:48:46 -0000
- Subject: [Bug libfortran/24313] complex sqrt function does not return principal value
- References: <bug-24313-10567@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from kargl at gcc dot gnu dot org 2005-10-11 18:48 -------
I don't think this is a glibc problem. gfortran will use a GCC
builtin function. See gcc/fortran/mathbuiltins.def To confirm
this, I get
troutmask:kargl[210] ./z
( 0.000000 , -1.000000 ) (-0.7071068 , 0.7071068 )
( 1.1754944E-38, -1.000000 ) ( 0.7071068 ,-0.7071068 )
(-1.1754944E-38, -1.000000 ) ( 0.7071068 ,-0.7071068 )
on amd64-*-freebsd, which does not have a csqrtf in libm.
Note, I've replaced Mick's subnormal number with TINY(1.).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24313