From 8a2cc1c7e4c08aa83dc05a3b472caf1e71972d22 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 30 Dec 2014 00:52:41 +0200 Subject: [PATCH] stmhal: Add fake implementation of __aeabi_f2lz(). To make mp_obj_new_int_from_float() somehow work. --- lib/libm/math.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libm/math.c b/lib/libm/math.c index ed3635e53b..0998de227a 100644 --- a/lib/libm/math.c +++ b/lib/libm/math.c @@ -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};