diff options
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 8afdc82a64..e75ec1d4b9 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}; |