help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3


From: Ulrich Eckhardt
Subject: Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program?
Date: Wed, 01 Dec 2004 18:24:15 +0100
User-agent: KNode/0.7.7

Peng Yu wrote:

>>> #define L_x      5//10 //in the unit of \lambda\mathit{NA}
>>> #define L_y      5//10 //in the unit of \lambda\mathit{NA}
> 
> I changed the above statements to
> #define L_x      5.
> #define L_y      5.

Noooo.

float const L_x = 0.5f;
double const L_y = 0.5;

> But the results are still different. It seems that the division isn't
> the reason.

By point was also that 5//10 is not a division, as it might look at the
first glance!

Uli

-- 
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]