ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/02/20/11:30:00

From: lee AT uhunix DOT uhcc DOT Hawaii DOT Edu (Greg Lee)
Date: Thu, 20 Feb 1992 05:54:08 HST
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Problem with pow and djgpp
Status: O

} pow(2, 3)=2.1087770

I get the following with no 387, soft float functions in libm.a
derived from bsd source:

8.0000000 = pow(2.0000000, 3.0000000)

In case it's any use to anyone, the libm.a is available from
ftp.Hawaii.edu (or uhunix2.uhcc.Hawaii.edu) in /pub/linguist/libm.zoo.

I had to remove the declarations of fabs() and finite() from
my math.h and add this:

#define fabs(x) 	((x)<0.? -(x):(x))	/* Floating absolute value */


    -- Greg, lee AT uhunix DOT uhcc DOT hawaii DOT edu (lee AT uhunix on Bitnet)

- Raw text -


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