diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-05 01:57:54 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-05 01:57:54 +0000 |
commit | 7e73a8fd09a8070a3bbb90d2ddc4f04af4e2828a (patch) | |
tree | 606e074a1955f381c68d1689946066e9eb1a5a47 /py/asmthumb.c | |
parent | 5d4a8213395b1e27d303379772c90b3b0adc82d5 (diff) | |
parent | 45b43c21c4f8e30dcff00c2429eddba20ca002aa (diff) | |
download | micropython-7e73a8fd09a8070a3bbb90d2ddc4f04af4e2828a.tar.gz micropython-7e73a8fd09a8070a3bbb90d2ddc4f04af4e2828a.zip |
Merge remote-tracking branch 'upstream/master' into list_index
Diffstat (limited to 'py/asmthumb.c')
-rw-r--r-- | py/asmthumb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/asmthumb.c b/py/asmthumb.c index ee8041ac9f..ba95d80c68 100644 --- a/py/asmthumb.c +++ b/py/asmthumb.c @@ -7,6 +7,9 @@ #include "mpconfig.h" #include "asmthumb.h" +// wrapper around everything in this file +#if MICROPY_EMIT_THUMB || MICROPY_EMIT_INLINE_THUMB + #define UNSIGNED_FIT8(x) (((x) & 0xffffff00) == 0) #define UNSIGNED_FIT16(x) (((x) & 0xffff0000) == 0) #define SIGNED_FIT8(x) (((x) & 0xffffff80) == 0) || (((x) & 0xffffff80) == 0xffffff80) @@ -447,3 +450,5 @@ void asm_thumb_bl_ind(asm_thumb_t *as, void *fun_ptr, uint fun_id, uint reg_temp asm_thumb_write_op16(as, OP_SVC(fun_id)); } } + +#endif // MICROPY_EMIT_THUMB || MICROPY_EMIT_INLINE_THUMB |