[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sparse + complex arithmetic inconsistency
From: |
Rafael Laboissiere |
Subject: |
Re: Sparse + complex arithmetic inconsistency |
Date: |
Sat, 31 Mar 2007 23:42:13 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
* David Bateman <address@hidden> [2007-03-31 16:55]:
> Michael reported it a few months ago, together with the issue that with
> gcc/g++ 4.1 it is optimizer flag dependent. With gcc 4.0.1 I see
> (nan,nan) as a result of all of the operations.
>
> [snip]
>
> Until GCC gets its act together on this one there isn't much we can do.
> Note that the fact that Michael reported this means that it is also a
> misfeature of MSVC...
The bug is present even in a recent version of gcc:
$ sudo apt-get install gcc-snapshot
$ export LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
$ PATH=/usr/lib/gcc-snapshot/bin:$PATH
$ gcc --version | grep ^gcc
gcc (GCC) 4.3.0 20061022 (experimental)
$ gcc -o foo foo.c
$ ./foo
(1.000000,0.000000) / (0.000000,0.000000) -> (nan,nan)
(0.000000,1.000000) / (0.000000,0.000000) -> (nan,nan)
(1.000000,1.000000) / (0.000000,0.000000) -> (nan,nan)
--
Rafael
- Sparse + complex arithmetic inconsistency, (continued)
- Sparse + complex arithmetic inconsistency, Rafael Laboissiere, 2007/03/30
- Re: Sparse + complex arithmetic inconsistency, David Bateman, 2007/03/30
- Re: Sparse + complex arithmetic inconsistency, David Bateman, 2007/03/30
- Re: Sparse + complex arithmetic inconsistency, Michael Goffioul, 2007/03/30
- Re: Sparse + complex arithmetic inconsistency, David Bateman, 2007/03/30
- Re: Sparse + complex arithmetic inconsistency, Rafael Laboissiere, 2007/03/30
- Re: Sparse + complex arithmetic inconsistency, Michael Goffioul, 2007/03/30
- Re: Sparse + complex arithmetic inconsistency, Rafael Laboissiere, 2007/03/30
- Re: Sparse + complex arithmetic inconsistency, John W. Eaton, 2007/03/31
- Re: Sparse + complex arithmetic inconsistency, David Bateman, 2007/03/31
- Re: Sparse + complex arithmetic inconsistency,
Rafael Laboissiere <=
- Re: Sparse + complex arithmetic inconsistency, Paul Kienzle, 2007/03/31
- Re: Sparse + complex arithmetic inconsistency, David Bateman, 2007/03/31