summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
author= <peter@hinch.me.uk>2015-04-14 13:14:57 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-19 15:47:05 +0100
commit5008972fefdd0d8cad214d4c0a2fb3daea0ac3c8 (patch)
tree3fb510017d83a6862fd6b16834ac96653ef3d8aa /py/mpconfig.h
parentd8cbbcaa9d057f210b192bde68fde551972e426c (diff)
downloadmicropython-5008972fefdd0d8cad214d4c0a2fb3daea0ac3c8.tar.gz
micropython-5008972fefdd0d8cad214d4c0a2fb3daea0ac3c8.zip
py/inlinethumb: Support for core floating point instructions.
Adds support for the following Thumb2 VFP instructions, via the option MICROPY_EMIT_INLINE_THUMB_FLOAT: vcmp vsqrt vneg vcvt_f32_to_s32 vcvt_s32_to_f32 vmrs vmov vldr vstr vadd vsub vmul vdiv
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index c78221f3a5..a403a66633 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -186,6 +186,11 @@
#define MICROPY_EMIT_INLINE_THUMB (0)
#endif
+// Whether to enable float support in the Thumb2 inline assembler
+#ifndef MICROPY_EMIT_INLINE_THUMB_FLOAT
+#define MICROPY_EMIT_INLINE_THUMB_FLOAT (1)
+#endif
+
// Whether to emit ARM native code
#ifndef MICROPY_EMIT_ARM
#define MICROPY_EMIT_ARM (0)