Skip to content

Commit d779406

Browse files
committed
unix/longlong: Test using REPR_C.
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 longlong build. Signed-off-by: Yoctopuce dev <dev@yoctopuce.com>
1 parent 459abf8 commit d779406

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ports/unix/variants/longlong/mpconfigvariant.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@
3030

3131
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG)
3232

33+
// We build it on top of REPR C, which uses memory-efficient floating point
34+
// objects encoded directly mp_obj_t (30 bits only).
35+
// Therefore this variant should be built using MICROPY_FORCE_32BIT=1
36+
37+
#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_C)
38+
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
39+
typedef int mp_int_t;
40+
typedef unsigned int mp_uint_t;
41+
3342
// Set base feature level.
3443
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES)
3544

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy