mpconfigport.h 909 Bytes
Newer Older
1
2
// options to control how Micro Python is built

3
#define MICROPY_ENABLE_FLOAT        (1)
4
#define MICROPY_EMIT_CPYTHON        (0)
5
#define MICROPY_EMIT_X64            (1)
6
7
#define MICROPY_EMIT_THUMB          (0)
#define MICROPY_EMIT_INLINE_THUMB   (0)
8
9
10

// type definitions for the specific machine

11
12
13
14
15
16
17
18
19
20
21
#ifdef __LP64__
typedef long machine_int_t; // must be pointer size
typedef unsigned long machine_uint_t; // must be pointer size
#else
// These are definitions for machines where sizeof(int) == sizeof(void*),
// regardless for actual size.
typedef int machine_int_t; // must be pointer size
typedef unsigned int machine_uint_t; // must be pointer size
#endif

#define BYTES_PER_WORD sizeof(machine_int_t)
Damien's avatar
Damien committed
22

23
typedef void *machine_ptr_t; // must be of pointer size
24
typedef const void *machine_const_ptr_t; // must be of pointer size
25
typedef double machine_float_t;
26
27

machine_float_t machine_sqrt(machine_float_t x);