unix/variants: Don't use native _Float16 type.

Using it increases code size by about 2k.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-03-19 23:09:11 +11:00
parent 0c800cefea
commit b80607ecaf

View File

@@ -41,6 +41,11 @@
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
#endif
// Don't use native _Float16 because it increases code size by a lot.
#ifndef MICROPY_FLOAT_USE_NATIVE_FLT16
#define MICROPY_FLOAT_USE_NATIVE_FLT16 (0)
#endif
// Enable arbitrary precision long-int by default.
#ifndef MICROPY_LONGINT_IMPL
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)