Skip to content

Commit f456a2f

Browse files
authored
Merge pull request #162 from heyuanjie87/master
将MICROPY_FLOAT_IMPL设为可配置
2 parents 9f53056 + c6c8ea3 commit f456a2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

port/mpconfigport.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@
115115
#define MICROPY_MODULE_FROZEN_STR (0)
116116
#define MICROPY_CPYTHON_COMPAT (1)
117117
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
118+
#ifdef MICROPYTHON_USING_FLOAT_IMPL_FLOAT
118119
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
120+
#else
121+
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
122+
#endif
119123
#define MICROPY_READER_VFS (0)
120124
#define MICROPY_PY_PIN (1)
121125
#define MICROPY_PY_OS_DUPTERM (1)

0 commit comments

Comments
 (0)