mpconfigport.h 662 Bytes
Newer Older
1
2
#include <stdint.h>

Damien's avatar
Damien committed
3
4
// options to control how Micro Python is built

5
#define MICROPY_ENABLE_FLOAT        (1)
Damien's avatar
Damien committed
6
7
8
9
10
11
12
#define MICROPY_EMIT_CPYTHON        (0)
#define MICROPY_EMIT_X64            (0)
#define MICROPY_EMIT_THUMB          (1)
#define MICROPY_EMIT_INLINE_THUMB   (1)

// type definitions for the specific machine

Damien's avatar
Damien committed
13
14
#define BYTES_PER_WORD (4)

Damien's avatar
Damien committed
15
16
17
typedef int32_t machine_int_t; // must be pointer size
typedef uint32_t machine_uint_t; // must be pointer size
typedef void *machine_ptr_t; // must be of pointer size
18
typedef const void *machine_const_ptr_t; // must be of pointer size
Damien's avatar
Damien committed
19
typedef float machine_float_t;
20
21

machine_float_t machine_sqrt(machine_float_t x);