summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoctopuce dev <dev@yoctopuce.com>2025-07-20 16:38:33 +0200
committerDamien George <damien@micropython.org>2025-07-24 11:07:30 +1000
commit8b3439e26c293e374bf94c674d1e747d5a57034f (patch)
tree48a499ed741c3d121f4dbbf11eb93b14822fb979
parentd6876e227318f974b94655ee7b74dc4995701660 (diff)
unix/variants/longlong: Use REPR_C on this variant.
There is currently no build using REPR_C in the unix CI tests. As discussed in PR #16953, this is something that combines well with the longlong build. Signed-off-by: Yoctopuce dev <dev@yoctopuce.com>
-rw-r--r--ports/unix/variants/longlong/mpconfigvariant.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ports/unix/variants/longlong/mpconfigvariant.h b/ports/unix/variants/longlong/mpconfigvariant.h
index 20c52e98f..a04ff7a6d 100644
--- a/ports/unix/variants/longlong/mpconfigvariant.h
+++ b/ports/unix/variants/longlong/mpconfigvariant.h
@@ -30,6 +30,15 @@
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG)
+// We build it on top of REPR C, which uses memory-efficient floating point
+// objects encoded directly mp_obj_t (30 bits only).
+// Therefore this variant should be built using MICROPY_FORCE_32BIT=1
+
+#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_C)
+#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
+typedef int mp_int_t;
+typedef unsigned int mp_uint_t;
+
// Set base feature level.
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES)