Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 7 Mar 2001 12:23:05 +0100 From: Corinna Vinschen To: Cygwin ML Subject: Re: return value of log() Message-ID: <20010307122305.H21275@cygbert.vinschen.de> Mail-Followup-To: Cygwin ML References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from muraken2@nifty.com on Wed, Mar 07, 2001 at 07:10:53PM +0900 On Wed, Mar 07, 2001 at 07:10:53PM +0900, Kenta MURATA wrote: > Hi there, > > I can't understand that log(x) returns -HUGE_VAL if x < 0. > Becaus, IEEE definition returns NaN. > > Why adopt this implementation? In the newlib sources I found: /* Check for domain error here. */ if (x <= 0.0) { errno = ERANGE; return (z_notanum.d); } and AFAICS z_notanum is different from -HUGE_VAL. I suggest asking in the newlib mailing list mailto:newlib AT sources DOT redhat DOT com Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple