This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12904] in header: #define kTWOPI = 6.28 in function: 1.0/kTWOPI = 1.57 ???


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]