Re: [PHP-DEV] PHP 5.4.11 tests: floating point diff

2013-02-07 Thread Levi Morrison
I have a confirmed bug with Intel Engineering. For clarification purposes here, it only happens on 64-bit bit versions of icc and possibly only on Linux. If you link against the math library using `-lm` then this goes away at the cost of performance (though a negligible cost I would guess). Thanks

Re: [PHP-DEV] PHP 5.4.11 tests: floating point diff

2013-02-04 Thread Gustavo Lopes
On Tue, 05 Feb 2013 00:12:54 +0100, Levi Morrison wrote: I have confirmed that fmod(-2, 2) returns positive zero in icc. I have asked on their forum if there is a flag or something I can enable to fix this; it might be a bug. Note that fmodf (for floats, not doubles) correctly returns -0.

Re: [PHP-DEV] PHP 5.4.11 tests: floating point diff

2013-02-04 Thread Levi Morrison
>> My understanding of floating point calculations is that -0 and 0 are >> equivalent, so I can safely ignore the failures. I wanted to first >> check to make sure that is actually true. > > > No, they are not the same thing for several purposes. For instance, they > have different serializations.

Re: [PHP-DEV] PHP 5.4.11 tests: floating point diff

2013-02-04 Thread Ferenc Kovacs
On Mon, Feb 4, 2013 at 9:50 PM, Levi Morrison wrote: > I have been compiling PHP under various compilers trying to figure out > what flags I need for each compiler to pass all tests excluding > XFAILs. With Intel 13.0.1 I'm down to two failing tests: > > ==

Re: [PHP-DEV] PHP 5.4.11 tests: floating point diff

2013-02-04 Thread Gustavo Lopes
On Mon, 04 Feb 2013 21:50:23 +0100, Levi Morrison wrote: I have been compiling PHP under various compilers trying to figure out what flags I need for each compiler to pass all tests excluding XFAILs. With Intel 13.0.1 I'm down to two failing tests: =

[PHP-DEV] PHP 5.4.11 tests: floating point diff

2013-02-04 Thread Levi Morrison
I have been compiling PHP under various compilers trying to figure out what flags I need for each compiler to pass all tests excluding XFAILs. With Intel 13.0.1 I'm down to two failing tests: = FAILED TEST SUMMARY