summaryrefslogtreecommitdiffstatshomepage
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-01-15 11:12:08 +0000
committerDamien George <damien.p.george@gmail.com>2016-01-15 11:12:08 +0000
commitd8b08cf5fcac5ea3bf28f27f9bfa5fc7465c209b (patch)
tree6c6edb7300d1a75857130bfddd6fa4ca2ab189be /unix/mpconfigport.h
parentff133cdb075ea61af7ed5bb441a03219c30bfda6 (diff)
downloadmicropython-d8b08cf5fcac5ea3bf28f27f9bfa5fc7465c209b.tar.gz
micropython-d8b08cf5fcac5ea3bf28f27f9bfa5fc7465c209b.zip
unix: Add option to build 64-bit NaN-boxing interpreter.
Build using: make nanbox
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 035c62883d..0eaa84d15c 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -182,6 +182,8 @@ extern const struct _mp_obj_module_t mp_module_jni;
// type definitions for the specific machine
+// assume that if we already defined the obj repr then we also defined types
+#ifndef MICROPY_OBJ_REPR
#ifdef __LP64__
typedef long mp_int_t; // must be pointer size
typedef unsigned long mp_uint_t; // must be pointer size
@@ -191,6 +193,7 @@ typedef unsigned long mp_uint_t; // must be pointer size
typedef int mp_int_t; // must be pointer size
typedef unsigned int mp_uint_t; // must be pointer size
#endif
+#endif
#define BYTES_PER_WORD sizeof(mp_int_t)