mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
zephyr/mpconfigport: Enable MICROPY_PY_MATH_POW_FIX_NAN.
This is needed because zephyr incorrectly has `pow(-1, NaN) = 1`. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
#define MICROPY_PY_BUILTINS_HELP_TEXT zephyr_help_text
|
||||
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
|
||||
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
|
||||
#define MICROPY_PY_MATH_POW_FIX_NAN (1)
|
||||
#define MICROPY_PY_MACHINE (1)
|
||||
#define MICROPY_PY_MACHINE_INCLUDEFILE "ports/zephyr/modmachine.c"
|
||||
#define MICROPY_PY_MACHINE_I2C (1)
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG)
|
||||
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
|
||||
#define MICROPY_PY_BUILTINS_COMPLEX (0)
|
||||
#define MICROPY_PY_MATH_POW_FIX_NAN (1)
|
||||
|
||||
// These features are enabled to get the test suite passing.
|
||||
#define MICROPY_FULL_CHECKS (1)
|
||||
|
||||
Reference in New Issue
Block a user