From 8138205bea96afb6b59e3147fbaab754cb218ea2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 22 Mar 2014 20:44:43 +0000 Subject: [PATCH] stm/stmhal: Add more math stubs. --- stm/math.c | 8 ++++++++ stmhal/math.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/stm/math.c b/stm/math.c index 0809a3f2c5..cdb55a8ada 100644 --- a/stm/math.c +++ b/stm/math.c @@ -48,6 +48,14 @@ float ceilf(float x) { return 0.0; } float floorf(float x) { return 0.0; } float truncf(float x) { return 0.0; } float fmodf(float x, float y) { return 0.0; } +float gammaf(float x) { return 0.0; } +float lgammaf(float x) { return 0.0; } +float erff(float x) { return 0.0; } +float erfcf(float x) { return 0.0; } +float modff(float x, float *y) { return 0.0; } +float frexpf(float x, int *exp) { return 0.0; } +float ldexpf(float x, int exp) { return 0.0; } +int __fpclassifyf(float x) { return 0; } /*****************************************************************************/ // from musl-0.9.15 libm.h diff --git a/stmhal/math.c b/stmhal/math.c index 0809a3f2c5..cdb55a8ada 100644 --- a/stmhal/math.c +++ b/stmhal/math.c @@ -48,6 +48,14 @@ float ceilf(float x) { return 0.0; } float floorf(float x) { return 0.0; } float truncf(float x) { return 0.0; } float fmodf(float x, float y) { return 0.0; } +float gammaf(float x) { return 0.0; } +float lgammaf(float x) { return 0.0; } +float erff(float x) { return 0.0; } +float erfcf(float x) { return 0.0; } +float modff(float x, float *y) { return 0.0; } +float frexpf(float x, int *exp) { return 0.0; } +float ldexpf(float x, int exp) { return 0.0; } +int __fpclassifyf(float x) { return 0; } /*****************************************************************************/ // from musl-0.9.15 libm.h