cpython: d93bb3d636cf (original) (raw)

Mercurial > cpython

changeset 97490:d93bb3d636cf 3.5

#21167: Fix definition of NAN when ICC used without -fp-model strict. Patch from Chris Hogan of Intel, reviewed by Mark Dickinson. [#21167]

R David Murray rdmurray@bitdance.com
date Sat, 15 Aug 2015 18:33:45 -0400
parents 5a9ac801f9b4
children c1523d5dee3c
files Include/pymath.h Misc/ACKS Misc/NEWS
diffstat 3 files changed, 27 insertions(+), 1 deletions(-)[+] [-] Include/pymath.h 24 Misc/ACKS 1 Misc/NEWS 3

line wrap: on

line diff

--- a/Include/pymath.h +++ b/Include/pymath.h @@ -150,7 +150,29 @@ PyAPI_FUNC(void) _Py_set_387controlword(

#if !defined(Py_NAN) && !defined(Py_NO_NAN) -#define Py_NAN (Py_HUGE_VAL * 0.) +#if !defined(__INTEL_COMPILER)

+#else /* __INTEL_COMPILER */

+#endif /* __INTEL_COMPILER / #endif / Py_OVERFLOWED(X)

--- a/Misc/ACKS +++ b/Misc/ACKS @@ -594,6 +594,7 @@ Gregor Hoffleit Chris Hoffman Stefan Hoffmeister Albert Hofkamp +Chris Hogan Tomas Hoger Jonathan Hogg Kamilla Holanda

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ Release date: 2015-08-23 Core and Builtins ----------------- +- Issue #21167: NAN operations are now handled correctly when python is