summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorNicko van Someren <nicko@nicko.org>2017-02-01 16:41:22 -0700
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-02-02 22:23:10 +0300
commitdf0117c8ae213a0652c3b19a969edc7fd994eeab (patch)
tree015d209752d8277e9bcd970b10a08556f438b386 /unix
parent2486c4ff469fdb69555476e342eadda91a4ceadf (diff)
downloadmicropython-df0117c8ae213a0652c3b19a969edc7fd994eeab.tar.gz
micropython-df0117c8ae213a0652c3b19a969edc7fd994eeab.zip
py: Added optimised support for 3-argument calls to builtin.pow()
Updated modbuiltin.c to add conditional support for 3-arg calls to pow() using MICROPY_PY_BUILTINS_POW3 config parameter. Added support in objint_mpz.c for for optimised implementation.
Diffstat (limited to 'unix')
-rw-r--r--unix/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index ba2b5ce98d..66de0fa966 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -80,6 +80,7 @@
#define MICROPY_PY_BUILTINS_FROZENSET (1)
#define MICROPY_PY_BUILTINS_COMPILE (1)
#define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (1)
+#define MICROPY_PY_BUILTINS_POW3 (1)
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)