delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/17/05:06:53

Date: Sat, 17 Mar 2001 12:04:45 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Prashant Ramachandra <rprash AT wilco-int DOT com>
Message-Id: <8361-Sat17Mar2001120444+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: "djgpp AT delorie DOT com"
<5BF60CD649EDD411A04600B0D049F53A092586 AT hydmail02 DOT hyd DOT wilco-int DOT com>
(message from Prashant Ramachandra on Sat, 17 Mar 2001 14:21:46 +0530)
Subject: Re: Whats up with sqrt?
References: <5BF60CD649EDD411A04600B0D049F53A092586 AT hydmail02 DOT hyd DOT wilco-int DOT com>
Reply-To: djgpp AT delorie DOT com

> From: Prashant Ramachandra <rprash AT wilco-int DOT com>
> Date: Sat, 17 Mar 2001 14:21:46 +0530
> 
> On Saturday, March 17, 2001 1:34 PM, James W Sager Iii
> [SMTP:sager+@andrew.cmu.edu] wrote:
> | 
> | Alright so in my project sqrt(); will not work.  However in a
> | single
> | line command mode, I have no problem with it.  It'd take me an hour
> | or
> | two to track down if I pulled my project apart since its like 250k
> | in 20
> | files.
> | Not really sure its worth it, unless its driving someone insane
> | wondering what it could be. 
> 
> There's nothing insane about it. You just have to link in the math library,

No, there's no need to link in libm.a: sqrt is in libc.a as well.

In fact, for most arguments, code produced by latest versions of GCC
doesn't even call the library function, it emits an FP instruction
that computes the square root directly.

- Raw text -


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