py/modmath: Make expm1() be in MICROPY_PY_MATH_SPECIAL_FUNCTIONS.

This commit is contained in:
Paul Sokolovsky 2015-11-14 00:46:12 +02:00
parent 0aff87b808
commit 0d6116d86b

View File

@ -65,8 +65,10 @@ MATH_FUN_1(sqrt, sqrt)
MATH_FUN_2(pow, pow) MATH_FUN_2(pow, pow)
/// \function exp(x) /// \function exp(x)
MATH_FUN_1(exp, exp) MATH_FUN_1(exp, exp)
#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
/// \function expm1(x) /// \function expm1(x)
MATH_FUN_1(expm1, expm1) MATH_FUN_1(expm1, expm1)
#endif
/// \function log2(x) /// \function log2(x)
MATH_FUN_1(log2, log2) MATH_FUN_1(log2, log2)
/// \function log10(x) /// \function log10(x)