py/modmath: Make log2, log10 and hyperbolic funcs be SPECIAL_FUNCTIONS.
Will be included only when MICROPY_PY_MATH_SPECIAL_FUNCTIONS is enabled. Also covers cmath module (but only log10 is there at the moment).
This commit is contained in:
@@ -370,8 +370,11 @@ Q(pi)
|
||||
Q(sqrt)
|
||||
Q(pow)
|
||||
Q(exp)
|
||||
#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
|
||||
Q(expm1)
|
||||
#endif
|
||||
Q(log)
|
||||
#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
|
||||
Q(log2)
|
||||
Q(log10)
|
||||
Q(cosh)
|
||||
@@ -380,6 +383,7 @@ Q(tanh)
|
||||
Q(acosh)
|
||||
Q(asinh)
|
||||
Q(atanh)
|
||||
#endif
|
||||
Q(cos)
|
||||
Q(sin)
|
||||
Q(tan)
|
||||
|
||||
Reference in New Issue
Block a user