Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,11 @@ double __attribute__((pcs("aapcs"))) __aeabi_i2d(int32_t x) { ...@@ -49,6 +49,11 @@ double __attribute__((pcs("aapcs"))) __aeabi_i2d(int32_t x) {
return (float)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) { double __attribute__((pcs("aapcs"))) __aeabi_f2d(float x) {
float_s_t fx={0}; float_s_t fx={0};
double_s_t dx={0}; double_s_t dx={0};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment