Commit aba9f51f authored by Damien George's avatar Damien George
Browse files

stmhal: #undef log2f if it's defined.

parent 6693e6c5
......@@ -64,6 +64,10 @@ float sqrtf(float x) {
// TODO we need import these functions from some library (eg musl or newlib)
float powf(float x, float y) { return 0.0; }
float logf(float x) { return 0.0; }
// some compilers define log2f in terms of logf
#ifdef log2f
#undef log2f
#endif
float log2f(float x) { return 0.0; }
float log10f(float x) { return 0.0; }
float tanhf(float x) { return 0.0; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment