This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12904] in header: #define kTWOPI = 6.28 in function: 1.0/kTWOPI = 1.57 ???
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2003 03:55:42 -0000
- Subject: [Bug c++/12904] in header: #define kTWOPI = 6.28 in function: 1.0/kTWOPI = 1.57 ???
- References: <20031105033944.12904.ardashev@legsux5.phy.bnl.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12904
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-05 03:55 -------
I do not understand what the problem is?
Are you saying that the answer you getting for 1.0/6.28 is 1.57 or something else?
With the following program:
int main()
{
printf("%f\n", 1.0/6.28);
}
I get:
tin:~/src/gnu/gcctest>gcc pr12904.c
tin:~/src/gnu/gcctest>./a.out
0.159236
tin:~/src/gnu/gcctest>gcc pr12904.c -O3
tin:~/src/gnu/gcctest>./a.out
0.159236
tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_2/bin/gcc pr12904.c -O3
tin:~/src/gnu/gcctest>./a.out
0.159236
tin:~/src/gnu/gcctest>~/ia32_linux_gcc3_2/bin/gcc pr12904.c
tin:~/src/gnu/gcctest>./a.out
0.159236