Commit 8a2cc1c7 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

stmhal: Add fake implementation of __aeabi_f2lz().

To make mp_obj_new_int_from_float() somehow work.
parent 5f68094e
......@@ -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};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment