[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/
- Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program?,
Ulrich Eckhardt <=
- Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program?, Peng Yu, 2004/12/01
- Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program?, Paul Pluzhnikov, 2004/12/01
- Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program?, Peng Yu, 2004/12/03
- Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program?, Ulrich Eckhardt, 2004/12/04
- Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program?, Andre Poenitz, 2004/12/05
- Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program?, Peng Yu, 2004/12/05
- Re: g++ Bug? Why w/ and w/o "O3" options gives different result(g++3.3.3) for this program?, Andre Poenitz, 2004/12/06