mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-46656: Remove Py_NO_NAN macro (GH-31160)
Building Python now requires support for floating point Not-a-Number (NaN): remove the Py_NO_NAN macro.
This commit is contained in:
parent
5f8b5e2f21
commit
1b2611eb02
9 changed files with 16 additions and 28 deletions
|
|
@ -50,11 +50,8 @@
|
|||
# define Py_HUGE_VAL HUGE_VAL
|
||||
#endif
|
||||
|
||||
/* Py_NAN
|
||||
* A value that evaluates to a quiet Not-a-Number (NaN).
|
||||
* Define Py_NO_NAN in pyconfig.h if your platform doesn't support NaNs.
|
||||
*/
|
||||
#if !defined(Py_NAN) && !defined(Py_NO_NAN)
|
||||
// Py_NAN: Value that evaluates to a quiet Not-a-Number (NaN).
|
||||
#if !defined(Py_NAN)
|
||||
# if _Py__has_builtin(__builtin_nan)
|
||||
// Built-in implementation of the ISO C99 function nan(): quiet NaN.
|
||||
# define Py_NAN (__builtin_nan(""))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue