diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-10-04 21:48:14 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-10-10 16:01:13 +1100 |
| commit | 81a06d2c9c3ce081043e1eb948b65014f1b1786a (patch) | |
| tree | 68d071fb06f333086b356f558390893bb903bc49 /ports | |
| parent | d8d4e4dfbe4ca76a1b0adf4f1938562a308c6d48 (diff) | |
lib/libm: Remove implementation of log2f, use MP_NEED_LOG2 instead.
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/stm32/mpconfigport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/stm32/mpconfigport.h b/ports/stm32/mpconfigport.h index 7888b5355..06606e62a 100644 --- a/ports/stm32/mpconfigport.h +++ b/ports/stm32/mpconfigport.h @@ -335,6 +335,9 @@ static inline mp_uint_t disable_irq(void) { } while (0); #endif +// We need an implementation of the log2 function which is not a macro +#define MP_NEED_LOG2 (1) + // There is no classical C heap in bare-metal ports, only Python // garbage-collected heap. For completeness, emulate C heap via // GC heap. Note that MicroPython core never uses malloc() and friends, |
