diff options
| author | Damien George | 2017-04-01 11:39:38 +1100 |
|---|---|---|
| committer | Damien George | 2017-04-01 11:39:38 +1100 |
| commit | 4c307bfba1e5ffa3cec94bd63ba19ba6c322883b (patch) | |
| tree | 0ca562a561a639e2ab83e94d07f79699870c6986 /zephyr | |
| parent | 64d00511e11eed6e37134e5b43acac8a33226ca0 (diff) | |
all: Move BYTES_PER_WORD definition from ports to py/mpconfig.h
It can still be overwritten by a port in mpconfigport.h but for almost
all cases one can use the provided default.
Diffstat (limited to 'zephyr')
| -rw-r--r-- | zephyr/mpconfigport.h | 2 | ||||
| -rw-r--r-- | zephyr/mpconfigport_minimal.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/zephyr/mpconfigport.h b/zephyr/mpconfigport.h index e0586dcfc..0949d1374 100644 --- a/zephyr/mpconfigport.h +++ b/zephyr/mpconfigport.h @@ -99,8 +99,6 @@ typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size typedef long mp_off_t; -#define BYTES_PER_WORD (sizeof(mp_int_t)) - #define MP_STATE_PORT MP_STATE_VM #define MICROPY_PORT_ROOT_POINTERS \ diff --git a/zephyr/mpconfigport_minimal.h b/zephyr/mpconfigport_minimal.h index 04383f6e3..772335c0a 100644 --- a/zephyr/mpconfigport_minimal.h +++ b/zephyr/mpconfigport_minimal.h @@ -85,8 +85,6 @@ typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size typedef long mp_off_t; -#define BYTES_PER_WORD (sizeof(mp_int_t)) - #define MP_STATE_PORT MP_STATE_VM #define MICROPY_PORT_ROOT_POINTERS \ |
