delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/19/17:39:12

Sender: nate AT cartsys DOT com
Message-ID: <35B246DF.6B08164@cartsys.com>
Date: Sun, 19 Jul 1998 12:19:59 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Paul Shirley <Paul AT chocolat DOT obvious DOT fake DOT foobar DOT co DOT uk>
CC: djgpp AT delorie DOT com
Subject: Re: Use of FLT_EPSILON
References: <6odqk1$p23$1 AT nnrp1 DOT dejanews DOT com>
<Pine DOT SUN DOT 3 DOT 91 DOT 980714102032 DOT 6831H-100000 AT is> <2kS7KGAWILr1EwAu AT foobar DOT co DOT uk>

Paul Shirley wrote:
> 
> In article <Pine DOT SUN DOT 3 DOT 91 DOT 980714102032 DOT 6831H-100000 AT is>, Eli Zaretskii
> <eliz AT is DOT elta DOT co DOT il> writes
> >Also, I think you are mistaken in your perception of ugliness: by far
> >the most inefficient part of the above computation is the call to
> >`fabs' library function, all the rest is usually very fast on modern
> >machines.
> 
> Does djgpp actually generate a function call? mingw32 inlines it.

You're right.  `fabs' is a builtin function for GCC, so it will be
inlined unless you use `-fno-builtins'.  In fact, it can even be
computed at compile time, if possible.
-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


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