From 651768859a43305bc8deae672a56958c3166a002 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Mon, 3 Nov 2025 12:38:47 +0100 Subject: [PATCH] fix: add all missing math.h functions Fixes https://forum.arduino.cc/t/good-morning-everyone-app-lab-0-2-0-doesnt-load-the-modulino-h-library/1411464?u=facchinm --- loader/llext_exports.c | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/loader/llext_exports.c b/loader/llext_exports.c index 43aac03a..c9bbc142 100644 --- a/loader/llext_exports.c +++ b/loader/llext_exports.c @@ -49,13 +49,30 @@ EXPORT_SYMBOL(isupper); EXPORT_SYMBOL(islower); EXPORT_SYMBOL(isxdigit); +// From math.h +EXPORT_SYMBOL(acos); +EXPORT_SYMBOL(acosf); +EXPORT_SYMBOL(asin); +EXPORT_SYMBOL(asinf); +EXPORT_SYMBOL(atan); EXPORT_SYMBOL(atan2); EXPORT_SYMBOL(atan2f); EXPORT_SYMBOL(atanf); -EXPORT_SYMBOL(asinf); -EXPORT_SYMBOL(acosf); +EXPORT_SYMBOL(cos); +EXPORT_SYMBOL(cosf); +EXPORT_SYMBOL(exp); +EXPORT_SYMBOL(exp2); +EXPORT_SYMBOL(log); +EXPORT_SYMBOL(logf); +EXPORT_SYMBOL(log2); +EXPORT_SYMBOL(log10); +EXPORT_SYMBOL(pow); +EXPORT_SYMBOL(sin); +EXPORT_SYMBOL(sinf); EXPORT_SYMBOL(sqrt); EXPORT_SYMBOL(sqrtf); +EXPORT_SYMBOL(tan); +EXPORT_SYMBOL(tanf); EXPORT_SYMBOL(k_sched_lock); EXPORT_SYMBOL(k_sched_unlock); @@ -208,12 +225,6 @@ EXPORT_SYMBOL(k_work_schedule); //FORCE_EXPORT_SYM(k_timer_user_data_set); //FORCE_EXPORT_SYM(k_timer_start); -EXPORT_SYMBOL(sin); -EXPORT_SYMBOL(cos); -EXPORT_SYMBOL(tan); -EXPORT_SYMBOL(atan); -EXPORT_SYMBOL(pow); - EXPORT_SYMBOL(puts); EXPORT_SYMBOL(putchar); EXPORT_SYMBOL(printf);