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 Message-ID: <022401c0a706$8020f5e0$9865fea9@timayum4srqln4> From: "Tim Prince" To: "Kenta MURATA" , "Cygwin ML" References: Subject: Re: return value of log() Date: Wed, 7 Mar 2001 04:59:46 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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" To: "Cygwin ML" 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 "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