delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/11/15:09:01

Date: Thu, 11 Jan 2001 22:06:41 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Morten Welinder <terra AT diku DOT dk>
Message-Id: <2110-Thu11Jan2001220640+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-workers AT delorie DOT com
In-reply-to: <20010111180416.8986.qmail@tyr.diku.dk> (message from Morten
Welinder on 11 Jan 2001 18:04:16 -0000)
Subject: Re: Weird results of log( -1.0 ) with libm.a and without libm.a (fwd)
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010111191955 DOT 20014B-100000 AT is> <20010111180416 DOT 8986 DOT qmail AT tyr DOT diku DOT dk>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: 11 Jan 2001 18:04:16 -0000
> From: Morten Welinder <terra AT diku DOT dk>
> 
> >From Solaris man page (a generally very good source):
> 
>      If x is NaN, NaN is returned.
> 
>      If x is less than 0, -HUGE_VAL or NaN is returned and  errno
>      is set to EDOM.
> 
>      If x is 0, -HUGE_VAL is returned and errno  may  be  set  to
>      ERANGE.

Thanks, Morten.  I suspected this is how most other Unix systems
behave.  libm is very religious in following these conventions.

- Raw text -


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