blob: 3fa3ac6524ac3e3464493cf49cbb45c30791fbb8 [file] [log] [blame]
Damiened656052013-10-13 00:42:20 +01001// options to control how Micro Python is built
2
Damienfecee2b2013-11-02 16:41:51 +00003#define MICROPY_ENABLE_FLOAT (1)
Damiened656052013-10-13 00:42:20 +01004#define MICROPY_EMIT_CPYTHON (0)
5#define MICROPY_EMIT_X64 (0)
6#define MICROPY_EMIT_THUMB (1)
7#define MICROPY_EMIT_INLINE_THUMB (1)
8
9// type definitions for the specific machine
10
Damien3f69aca2013-10-21 23:46:04 +010011#define BYTES_PER_WORD (4)
12
Damiened656052013-10-13 00:42:20 +010013typedef int32_t machine_int_t; // must be pointer size
14typedef uint32_t machine_uint_t; // must be pointer size
15typedef void *machine_ptr_t; // must be of pointer size
16typedef float machine_float_t;
Damien39c6c592013-11-09 20:15:48 +000017
18machine_float_t machine_sqrt(machine_float_t x);