diff options
| author | stijn | 2020-09-08 15:22:34 +0200 |
|---|---|---|
| committer | Damien George | 2020-09-11 10:04:57 +1000 |
| commit | 2e54d9d146b34d7ad00e4394c9767f4319244cdf (patch) | |
| tree | b6d56e3d53b9fef5d5898964d7bdd086e23016d5 /ports/windows | |
| parent | 8d5a40c86e384bf3cddb2f687374e0bb1ae6df7d (diff) | |
py: Fix handling of NaN in certain pow implementations.
Adds a new compile-time option MICROPY_PY_MATH_POW_FIX_NAN for use with
toolchains that don't handle pow-of-NaN correctly.
Diffstat (limited to 'ports/windows')
| -rw-r--r-- | ports/windows/mpconfigport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/windows/mpconfigport.h b/ports/windows/mpconfigport.h index 30389c700..faf10752e 100644 --- a/ports/windows/mpconfigport.h +++ b/ports/windows/mpconfigport.h @@ -236,6 +236,8 @@ extern const struct _mp_obj_module_t mp_module_time; #define MICROPY_PY_MATH_FMOD_FIX_INFNAN (1) #ifdef _WIN64 #define MICROPY_PY_MATH_MODF_FIX_NEGZERO (1) +#else +#define MICROPY_PY_MATH_POW_FIX_NAN (1) #endif #endif |
