stmhal: Add fake implementation of __aeabi_f2lz().

To make mp_obj_new_int_from_float() somehow work.
This commit is contained in:
Paul Sokolovsky 2014-12-30 00:52:41 +02:00
parent 5f68094e10
commit 8a2cc1c7e4
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,11 @@ double __attribute__((pcs("aapcs"))) __aeabi_i2d(int32_t x) {
return (float)x;
}
// TODO
long long __attribute__((pcs("aapcs"))) __aeabi_f2lz(float x) {
return (long)x;
}
double __attribute__((pcs("aapcs"))) __aeabi_f2d(float x) {
float_s_t fx={0};
double_s_t dx={0};