diff options
Diffstat (limited to 'stmhal/math.c')
-rw-r--r-- | stmhal/math.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/math.c b/stmhal/math.c index 75a5aeb2ee..5fb9c4ba16 100644 --- a/stmhal/math.c +++ b/stmhal/math.c @@ -20,6 +20,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}; |