py: Make math special functions configurable and disabled by default.

The implementation of these functions is very large (order 4k) and they
are rarely used, so we don't enable them by default.

They are however enabled in stmhal and unix, since we have the room.
This commit is contained in:
Damien George
2015-02-22 14:48:18 +00:00
parent 9ab94c468c
commit 5cbeacebdb
5 changed files with 13 additions and 0 deletions

View File

@@ -363,11 +363,13 @@ Q(frexp)
Q(ldexp)
Q(degrees)
Q(radians)
#if MICROPY_PY_MATH_SPECIAL_FUNCTIONS
Q(erf)
Q(erfc)
Q(gamma)
Q(lgamma)
#endif
#endif
#if MICROPY_PY_CMATH
Q(cmath)