Fw: About the precision of cos() sin() and tan() function differ from glibs and fdlibm.

firstbt firstbt@gmail.com
Fri Dec 22 06:06:00 GMT 2006


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




More information about the Gcc-help mailing list