complex arithmetic and signed zero?
Richard Henderson
rth@redhat.com
Wed Oct 12 22:38:00 GMT 2005
On Wed, Oct 12, 2005 at 01:48:49PM -0700, Steve Kargl wrote:
> Unfortunately, the point of my original question
> was missed. gcc is not following Annex G in n1124.pdf.
> In particular, see G.5.1 Multiplicative operators.
>
> y = copysign(0, -1);
> z = I * y; /* This should be computed as (i1)*(-0) = -i0 */
> /* Upon assignment to z, we have z = 0 - i0 */
File a bug then.
r~
More information about the Gcc
mailing list