Date: Thu, 11 Jan 2001 22:06:41 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Morten Welinder 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: <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 Precedence: bulk > Date: 11 Jan 2001 18:04:16 -0000 > From: Morten Welinder > > >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.