diff options
author | Damien George <damien.p.george@gmail.com> | 2017-10-04 21:48:14 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-10-10 16:01:13 +1100 |
commit | 81a06d2c9c3ce081043e1eb948b65014f1b1786a (patch) | |
tree | 68d071fb06f333086b356f558390893bb903bc49 /lib/libm/math.c | |
parent | d8d4e4dfbe4ca76a1b0adf4f1938562a308c6d48 (diff) | |
download | micropython-81a06d2c9c3ce081043e1eb948b65014f1b1786a.tar.gz micropython-81a06d2c9c3ce081043e1eb948b65014f1b1786a.zip |
lib/libm: Remove implementation of log2f, use MP_NEED_LOG2 instead.
Diffstat (limited to 'lib/libm/math.c')
-rw-r--r-- | lib/libm/math.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/libm/math.c b/lib/libm/math.c index 5e00740d10..6b65202cf0 100644 --- a/lib/libm/math.c +++ b/lib/libm/math.c @@ -48,16 +48,6 @@ float copysignf(float x, float y) { } #endif -// some compilers define log2f in terms of logf -#ifdef log2f -#undef log2f -#endif -// some compilers have _M_LN2 defined in math.h, some don't -#ifndef _M_LN2 -#define _M_LN2 (0.69314718055994530942) -#endif -float log2f(float x) { return logf(x) / (float)_M_LN2; } - static const float _M_LN10 = 2.30258509299404; // 0x40135d8e float log10f(float x) { return logf(x) / (float)_M_LN10; } |