diff options
author | Nicko van Someren <nicko@nicko.org> | 2017-02-01 16:41:22 -0700 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-02 22:23:10 +0300 |
commit | df0117c8ae213a0652c3b19a969edc7fd994eeab (patch) | |
tree | 015d209752d8277e9bcd970b10a08556f438b386 /py/objint.h | |
parent | 2486c4ff469fdb69555476e342eadda91a4ceadf (diff) | |
download | micropython-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 'py/objint.h')
-rw-r--r-- | py/objint.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objint.h b/py/objint.h index a84a33fa50..7205761ad2 100644 --- a/py/objint.h +++ b/py/objint.h @@ -66,5 +66,6 @@ mp_obj_t mp_obj_int_abs(mp_obj_t self_in); mp_obj_t mp_obj_int_unary_op(mp_uint_t op, mp_obj_t o_in); mp_obj_t mp_obj_int_binary_op(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in); mp_obj_t mp_obj_int_binary_op_extra_cases(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in); +mp_obj_t mp_obj_int_pow3(mp_obj_t base, mp_obj_t exponent, mp_obj_t modulus); #endif // __MICROPY_INCLUDED_PY_OBJINT_H__ |