blob: a358d7db814afdc66d1df13c4a982521d980f273 [file] [log] [blame]
Damienc025ebb2013-10-12 14:30:21 +01001// options to control how Micro Python is built
2
Damien3ef4abb2013-10-12 16:53:13 +01003#define MICROPY_ENABLE_FLOAT (1)
Damienfa2162b2013-10-20 17:42:00 +01004#define MICROPY_EMIT_CPYTHON (0)
Damiend2755ec2013-10-16 23:58:48 +01005#define MICROPY_EMIT_X64 (1)
Damien3ef4abb2013-10-12 16:53:13 +01006#define MICROPY_EMIT_THUMB (0)
7#define MICROPY_EMIT_INLINE_THUMB (0)
Damienc025ebb2013-10-12 14:30:21 +01008
9// type definitions for the specific machine
10
Damiend276f632013-10-22 16:05:47 +010011#define BYTES_PER_WORD (8)
12
Damienc025ebb2013-10-12 14:30:21 +010013typedef int64_t machine_int_t; // must be pointer size
14typedef uint64_t machine_uint_t; // must be pointer size
15typedef void *machine_ptr_t; // must be of pointer size
Damiend99b0522013-12-21 18:17:45 +000016typedef const void *machine_const_ptr_t; // must be of pointer size
Damienc025ebb2013-10-12 14:30:21 +010017typedef double machine_float_t;
Damien087d2182013-11-09 20:14:30 +000018
19machine_float_t machine_sqrt(machine_float_t x);