Skip to content

Commit 8a2cc1c

Browse files
committed
stmhal: Add fake implementation of __aeabi_f2lz().
To make mp_obj_new_int_from_float() somehow work.
1 parent 5f68094 commit 8a2cc1c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/libm/math.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ double __attribute__((pcs("aapcs"))) __aeabi_i2d(int32_t x) {
4949
return (float)x;
5050
}
5151

52+
// TODO
53+
long long __attribute__((pcs("aapcs"))) __aeabi_f2lz(float x) {
54+
return (long)x;
55+
}
56+
5257
double __attribute__((pcs("aapcs"))) __aeabi_f2d(float x) {
5358
float_s_t fx={0};
5459
double_s_t dx={0};

0 commit comments

Comments
 (0)