From 2e2e15cec2f85ece763f3f80152d759aecfad47c Mon Sep 17 00:00:00 2001 From: Doug Currie Date: Sat, 30 Jan 2016 22:35:58 -0500 Subject: py/mpz: Complete implementation of mpz_{and,or,xor} for negative args. For these 3 bitwise operations there are now fast functions for positive-only arguments, and general functions for arbitrary sign arguments (the fast functions are the existing implementation). By default the fast functions are not used (to save space) and instead the general functions are used for all operations. Enable MICROPY_OPT_MPZ_BITWISE to use the fast functions for positive arguments. --- stmhal/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stmhal') diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h index eaf1da716..cea8a3ecb 100644 --- a/stmhal/mpconfigport.h +++ b/stmhal/mpconfigport.h @@ -46,6 +46,7 @@ #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT) #define MICROPY_OPT_COMPUTED_GOTO (1) #define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (0) +#define MICROPY_OPT_MPZ_BITWISE (1) // fatfs configuration used in ffconf.h #define MICROPY_FATFS_ENABLE_LFN (1) -- cgit v1.2.3