Skip to content

Commit 8138205

Browse files
committed
stm/stmhal: Add more math stubs.
1 parent 6280587 commit 8138205

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

stm/math.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ float ceilf(float x) { return 0.0; }
4848
float floorf(float x) { return 0.0; }
4949
float truncf(float x) { return 0.0; }
5050
float fmodf(float x, float y) { return 0.0; }
51+
float gammaf(float x) { return 0.0; }
52+
float lgammaf(float x) { return 0.0; }
53+
float erff(float x) { return 0.0; }
54+
float erfcf(float x) { return 0.0; }
55+
float modff(float x, float *y) { return 0.0; }
56+
float frexpf(float x, int *exp) { return 0.0; }
57+
float ldexpf(float x, int exp) { return 0.0; }
58+
int __fpclassifyf(float x) { return 0; }
5159

5260
/*****************************************************************************/
5361
// from musl-0.9.15 libm.h

stmhal/math.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ float ceilf(float x) { return 0.0; }
4848
float floorf(float x) { return 0.0; }
4949
float truncf(float x) { return 0.0; }
5050
float fmodf(float x, float y) { return 0.0; }
51+
float gammaf(float x) { return 0.0; }
52+
float lgammaf(float x) { return 0.0; }
53+
float erff(float x) { return 0.0; }
54+
float erfcf(float x) { return 0.0; }
55+
float modff(float x, float *y) { return 0.0; }
56+
float frexpf(float x, int *exp) { return 0.0; }
57+
float ldexpf(float x, int exp) { return 0.0; }
58+
int __fpclassifyf(float x) { return 0; }
5159

5260
/*****************************************************************************/
5361
// from musl-0.9.15 libm.h

0 commit comments

Comments
 (0)