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]
Other format: [Raw text]

Re: What is -3.I (as opposed to 0-3.I) supposed evaluate to?


On Mon, 8 Jun 2009, Kaveh R. Ghazi wrote:

> Perhaps the only safe way to create the value, even in the presence of
> rounding mode changes, is to use conj(3.I) ?

Setting the __real__ and __imag__ parts of a temporary variable should 
always be reliable for making a complex number out of arbitrary real and 
imaginary parts.

-- 
Joseph S. Myers
joseph@codesourcery.com


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