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
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.
>> 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.
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:
>
> ==
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:
=
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