diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-20 00:15:35 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-20 00:15:35 +0100 |
commit | c7c4a8439735ff7617f78b5b6c0cdfb05ae88656 (patch) | |
tree | cfa83ebe2bcb23d2bb90fa522c2e1045e672e0d0 /stm/math.c | |
parent | a3f94e0030dc209f4d180531878cede7a1e2dbbe (diff) |
stm: Update to compile with latest changes to core py.
Diffstat (limited to 'stm/math.c')
-rw-r--r-- | stm/math.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stm/math.c b/stm/math.c index 8afdc82a6..e75ec1d4b 100644 --- a/stm/math.c +++ b/stm/math.c @@ -18,6 +18,10 @@ typedef union { }; } double_s_t; +double __attribute__((pcs("aapcs"))) __aeabi_i2d(int32_t x) { + return (float)x; +} + double __attribute__((pcs("aapcs"))) __aeabi_f2d(float x) { float_s_t fx={0}; double_s_t dx={0}; |