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 libstdc++/13450] std::pow(std::complex<double>(-1.,0.),0.5) yields (NaN,0)


------- Additional Comments From gdr at integrable-solutions dot net  2004-01-12 20:23 -------
Subject: Re:  std::pow(std::complex<double>(-1.,0.),0.5) yields (NaN,0)

"pkienzle at nist dot gov" <gcc-bugzilla@gcc.gnu.org> writes:

| > Therefore we need a primitive that tells the sign of a real number.
| 
| C99 has signbit and copysign.  I was able to access them as follows:

Yes, I know C99 has signbit and copysign, but that helps hardly for
this template code for C++.

-- Gaby


-- 


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


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