delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/07/09:47:58

From: sime AT fly DOT cc DOT fer DOT hr (S. Mikecin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Optimization of math.h functions
Date: 7 Sep 1997 13:01:45 GMT
Organization: FER, Croatia
Lines: 18
Distribution: world
Message-ID: <5uu8jp$fqf@bagan.srce.hr>
References: <199709030259 DOT TAA10342 AT adit DOT ap DOT net> <340D375D DOT ECA9918 AT Mathematik DOT TU-Chemnitz DOT DE>
Reply-To: sime AT fly DOT cc DOT etf DOT hr
NNTP-Posting-Host: fly.cc.etf.hr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Robert Hoehne (Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE) wrote:

: Nate Eldredge wrote:
: > 
: > Does anybody know why the math functions aren't implemented as inline
: > functions in the header file, but rather as regular functions? Since most of

: Because there is a gcc switch, which does this :-)

: 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?).

                                         // E-mail: smikecin AT bigfoot DOT com
                                        // URL:     http://fly.cc.fer.hr/~sime

- Raw text -


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