TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Thomas Seeling
from: Tom Almy
date: 1997-01-19 05:36:12
subject: Floating point feature with optimization

-=> Quoting Thomas Seeling to All <=-

 TS> I'd like to draw your attention to the following 'feature' that can
 TS> occur when using the GCC's optimize options (-Ox) on a 386/486/586
 TS> platform. Consider the following test program.

I discovered that if you use the inline function optimization, trig functions
break with large argument values. Try sin(1e30) -- the result isn't between
-1 and 1!

Tom


--- Blue Wave/DOS v2.30
* Origin: Melted Butter, Tualatin, Oregon (1:105/290)
SEEN-BY: 50/99 54/99 270/101 620/243 625/110 160 711/430 808 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 105/290 330 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.