Re: [OE-core] libm accuracy, eglibc compared to glibc -- solved

2014-03-27 Thread Khem Raj
On Mar 27, 2014 8:16 AM, "Mats Kärrman" wrote: > > Hi Khem, > > On Friday, March 21, 2014 6:06 PM, Khem Raj wrote: > > On Fri, Mar 21, 2014 at 9:45 AM, Mark Hatle wrote: > >> On 3/21/14, 7:10 AM, Mats Kärrman wrote: > >>> > >>> Hi, > >>> > >>> On: Thursday, March 13, 2014 11:36 AM, Mats Kärrman w

Re: [OE-core] libm accuracy, eglibc compared to glibc -- solved

2014-03-27 Thread Mats Kärrman
Hi Khem, On Friday, March 21, 2014 6:06 PM, Khem Raj wrote: > On Fri, Mar 21, 2014 at 9:45 AM, Mark Hatle wrote: >> On 3/21/14, 7:10 AM, Mats Kärrman wrote: >>> >>> Hi, >>> >>> On: Thursday, March 13, 2014 11:36 AM, Mats Kärrman wrote: My "home made" hard float tune for PowerPC looks li

Re: [OE-core] libm accuracy, eglibc compared to glibc -- solved

2014-03-21 Thread Khem Raj
On Fri, Mar 21, 2014 at 9:45 AM, Mark Hatle wrote: > On 3/21/14, 7:10 AM, Mats Kärrman wrote: >> >> Hi, >> >> On: Thursday, March 13, 2014 11:36 AM, Mats Kärrman wrote: >>> >>> My "home made" hard float tune for PowerPC looks like this: >>> >>> -

Re: [OE-core] libm accuracy, eglibc compared to glibc -- solved

2014-03-21 Thread Mark Hatle
On 3/21/14, 7:10 AM, Mats Kärrman wrote: Hi, On: Thursday, March 13, 2014 11:36 AM, Mats Kärrman wrote: My "home made" hard float tune for PowerPC looks like this: -- # Tune for the e300c3 core require conf/machine/include/tune-pp

Re: [OE-core] libm accuracy, eglibc compared to glibc -- solved

2014-03-21 Thread Mats Kärrman
Hi, On: Thursday, March 13, 2014 11:36 AM, Mats Kärrman wrote: > My "home made" hard float tune for PowerPC looks like this: > > -- > # Tune for the e300c3 core > require conf/machine/include/tune-ppce300c3.inc > > # Use hardware fl

Re: [OE-core] libm accuracy, eglibc compared to glibc

2014-03-13 Thread Mats Kärrman
On Wednesday, March 12, 2014 6:37 PM, Phil Blundell wrote: > On Wed, 2014-03-12 at 15:30 +, Mats Kärrman wrote: >> Does anyone know if this is a known "feature" of eglibc or know any other >> reason >> for this difference? > > Does eglibc's own libm testsuite pass on your platform? I wonder i

Re: [OE-core] libm accuracy, eglibc compared to glibc

2014-03-13 Thread Mats Kärrman
On Wednesday, March 12, 2014 7:09 PM, Khem Raj wrote: > On Wed, Mar 12, 2014 at 8:30 AM, Mats Kärrman wrote: >> I face a problem with libm. With my Dora build the following assertion >> doesn't hold: >> >> sqrt( pow( sqrt( 2.0 ), 4.0 ) ) == 2.0 >> >> Does anyone know if this is a known "feature"

Re: [OE-core] libm accuracy, eglibc compared to glibc

2014-03-13 Thread Mats Kärrman
On Wednesday, March 12, 2014 6:37 PM, Phil Blundell wrote: > On Wed, 2014-03-12 at 15:30 +, Mats Kärrman wrote: >> Does anyone know if this is a known "feature" of eglibc or know any other >> reason >> for this difference? > > Does eglibc's own libm testsuite pass on your platform? I wonder i

Re: [OE-core] libm accuracy, eglibc compared to glibc

2014-03-13 Thread Mats Kärrman
On Wednesday, March 12, 2014 4:58 PM, Burton, Ross wrote: > On 12 March 2014 15:30, Mats Kärrman wrote: >> Does anyone know if this is a known "feature" of eglibc or know any other >> reason >> for this difference? > > I expect the standard response from upstream here would be that > floating poi

Re: [OE-core] libm accuracy, eglibc compared to glibc

2014-03-12 Thread Khem Raj
Hi Mats On Wed, Mar 12, 2014 at 8:30 AM, Mats Kärrman wrote: > Hi, > > I face a problem with libm. With my Dora build the following assertion > doesn't hold: > > sqrt( pow( sqrt( 2.0 ), 4.0 ) ) == 2.0 > > 1) With my old OE-classic / glibc-2.9 / PowerPC-hf it holds. > 2) With my Debian desktop PC

Re: [OE-core] libm accuracy, eglibc compared to glibc

2014-03-12 Thread Phil Blundell
On Wed, 2014-03-12 at 15:30 +, Mats Kärrman wrote: > Does anyone know if this is a known "feature" of eglibc or know any other > reason > for this difference? Does eglibc's own libm testsuite pass on your platform? I wonder if oe-core is accidentally building eglibc without "big" libm for yo

Re: [OE-core] libm accuracy, eglibc compared to glibc

2014-03-12 Thread Burton, Ross
On 12 March 2014 15:30, Mats Kärrman wrote: > Does anyone know if this is a known "feature" of eglibc or know any other > reason > for this difference? I expect the standard response from upstream here would be that floating point mathematics isn't exact and if you want exact answers then you sh

Re: [OE-core] libm accuracy, eglibc compared to glibc

2014-03-12 Thread Stanacar, StefanX
Hello, I just want to point out that this looks very similar to a qemuppc machine bug we've seen before with libm and floor() call: https://bugzilla.yoctoproject.org/show_bug.cgi?id=4854 It was fixed with: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2a48e9007cc92fedfdb6919411859fb9

[OE-core] libm accuracy, eglibc compared to glibc

2014-03-12 Thread Mats Kärrman
Hi, I face a problem with libm. With my Dora build the following assertion doesn't hold: sqrt( pow( sqrt( 2.0 ), 4.0 ) ) == 2.0 1) With my old OE-classic / glibc-2.9 / PowerPC-hf it holds. 2) With my Debian desktop PC / glibc-2.17 / amd64 it holds. 3) With my new OE-core Dora / eglibc-2.18 / Po