delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/07/20:14:03

Date: Mon, 8 Sep 1997 08:12:12 +0800 (GMT)
From: Orlando Andico <orly AT dilnet DOT upd DOT edu DOT ph>
To: sime AT fly DOT cc DOT etf DOT hr
cc: djgpp AT delorie DOT com
Subject: Re: Optimization of math.h functions
In-Reply-To: <5uu8jp$fqf@bagan.srce.hr>
Message-ID: <Pine.SGI.3.93.970908081052.1721C-100000@gibson>
MIME-Version: 1.0

On 7 Sep 1997, S. Mikecin wrote:

..
> : Use '-ffast-math' to inline the math functions.
> 
> Yes, you're right. But it seems to work only for a few functions (sqrt, sin,
> cos, fabs). Compared to Watcom C 10.5a output which inlines almost all
> math functions (sqrt, sin, cos, fabs, tan, atan, sinh, cosh, log, exp,...) it
> is not as good as it should be (maybe in gcc 2.8.0?).

If I remember the GCC man page directly, there's a further caveat to be
aware of when using -ffast-math. That is, when this flag is used, GCC does
not guarantee that math error exceptions (matherr() et al) will be
completely ANSI compliant.

That said, I use -ffast-math all the time.  :)
 
-------------------------------------------------------------------
Orlando Alcantara Andico
WWW:   http://www2.mozcom.com/~orly/         Email: orly AT mozcom DOT com
ICBM:  14 30 00 N  120 59 00 E               POTS:  (+632) 932-2385

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019