X-Spam-Check-By: sourceware.org
Message-ID: <ba40711f0704231914r13469e77y7ed032a387ae63d2@mail.gmail.com>
Date: Mon, 23 Apr 2007 22:14:17 -0400
From: "Lev Bishop" <lev.bishop@gmail.com>
To: cygwin@cygwin.com
Subject: Re: newlib?: pow function can produce incorrect results.
In-Reply-To: <007501c7860c$fc385bf0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <17190.86623.qm@web59108.mail.re1.yahoo.com> 	 <007501c7860c$fc385bf0$2e08a8c0@CAM.ARTIMI.COM>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 4/23/07, Dave Korn  wrote:
> On 24 April 2007 00:53, Cary R. wrote:
>
> > I had some more time to look into this and when the
> > simple C program I mentioned earlier uses variables
> > like the other program, incorrect results are
> > produced. I have attached this C/C++ program. I
> > certainly don't understand what is going on. I would
> > have expected pow to be pass-by value which should
> > make the two calls identical from a system standpoint,
> > but the results imply something different. Any
> > suggestions would be greatly appreciated.
>
>
>   The notorious PR323.

Nah, in this case it's just that gcc's __builtin_pow() is more
standards-compliant than newlib's pow().

L

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

