This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Fw: About the precision of cos() sin() and tan() function differ from glibs and fdlibm.
- From: "firstbt" <firstbt at gmail dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 22 Dec 2006 14:06:23 +0800
- Subject: Fw: About the precision of cos() sin() and tan() function differ from glibs and fdlibm.
- References: <1166507389.26417.ezmlm@gcc.gnu.org> <200612221402132504308@gmail.com>
Hi folks:
when i invoke glibc's cos(1.5707963267948972),it returns me 0xbcc5cb4000000000(8 bytes of the memory),but when i use fdlibm,it returns me 0xbcc5cb3b399d747f.
How can i get 0xbcc5cb3b399d747f only use glibc? Is there some gcc compiler options or flags like -single* can solve this problem???
Best wishes
firstbt
2006-12-22