avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] pow(x,y) broken for x<0


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] pow(x,y) broken for x<0
Date: Mon, 24 Oct 2005 22:26:05 +0200
User-agent: Mutt/1.4.2.1i

As Edwin Olson wrote:

> I believe the implementation of pow is inconsistent with the
> standard POSIX definition. The one provided by avr libc assumes x>0
> so that it can approximate x^y with exp( log(x) * y).

> The POSIX definition allows x<0, provided that y is integral valued.

Sigh, yet another FPlib bug. :-(

While we aren't aiming for Posix compliance, of course, they only took
the C standard on that, and *that* we do want to be compatible with.

Please fill out a bug report at

https://savannah.nongnu.org/bugs/?group=avr-libc

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]