aboutsummaryrefslogtreecommitdiff
path: root/py/bc.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-17 16:38:46 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-17 16:50:19 +1100
commit5640e6dacd39d97adffce8490991c457f457b1cd (patch)
treec1978abcf974c64cc7aede37404f113ac74faafc /py/bc.h
parent71a3d6ec3bd02c5bd13334537e1bd146bb643bad (diff)
py: Provide mp_decode_uint_value to help optimise stack usage.
This has a noticeable improvement on x86-64 and Thumb2 archs, where stack usage is reduced by 2 machine words in the VM.
Diffstat (limited to 'py/bc.h')
-rw-r--r--py/bc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/bc.h b/py/bc.h
index 996b1a2f3..e8d428612 100644
--- a/py/bc.h
+++ b/py/bc.h
@@ -91,6 +91,7 @@ typedef struct _mp_code_state_t {
} mp_code_state_t;
mp_uint_t mp_decode_uint(const byte **ptr);
+mp_uint_t mp_decode_uint_value(const byte *ptr);
mp_vm_return_kind_t mp_execute_bytecode(mp_code_state_t *code_state, volatile mp_obj_t inject_exc);
mp_code_state_t *mp_obj_fun_bc_prepare_codestate(mp_obj_t func, size_t n_args, size_t n_kw, const mp_obj_t *args);