delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <022401c0a706$8020f5e0$9865fea9@timayum4srqln4> |
From: | "Tim Prince" <tprince AT computer DOT org> |
To: | "Kenta MURATA" <muraken2 AT nifty DOT com>, "Cygwin ML" <cygwin AT cygwin DOT com> |
References: | <m37l21hosy DOT wl AT nifty DOT com> |
Subject: | Re: return value of log() |
Date: | Wed, 7 Mar 2001 04:59:46 -0800 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
The math library adopted by cygwin is part of newlib, an entirely separate project not even oriented to the same type of usage as cygwin or even the glibc. I imagine it may be intended not to depend on running on targets which implement IEEE standard. If you're using gcc or g++, it's easy to supply your own behavior by linking your own version first, or by supplying an in-line definition. IIRC, all the math functions test out fairly well on elefunt, except for asinf/acosf. I don't know why you would write an app to depend on the NaN behavior; you would at least have to forgo -ffast-math or supply and use your own isnan() and take other special precautions to make that work. ----- Original Message ----- From: "Kenta MURATA" <muraken2 AT nifty DOT com> To: "Cygwin ML" <cygwin AT cygwin DOT com> Sent: Wednesday, March 07, 2001 2:10 AM Subject: return value of log() > Hi there, > > I can't understand that log(x) returns -HUGE_VAL if x < 0. > Becaus, IEEE definition returns NaN. > > Why adopt this implementation? > > -- > Kenta Murata <muraken2 AT nifty DOT com> "http://village.infoweb.ne.jp/~muraken/" > > -- > Want to unsubscribe from this list? > Check out: http://cygwin.com/ml/#unsubscribe-simple > -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |