diff options
| author | Damien George | 2014-03-08 15:24:39 +0000 |
|---|---|---|
| committer | Damien George | 2014-03-08 15:24:39 +0000 |
| commit | 0c36da0b59bd3d5aeb6f7bd7f75913695a1dd366 (patch) | |
| tree | eb1d8e50037139646f935df99da56764fcafb4f1 /py/qstrdefs.h | |
| parent | 8fd7d7e102372a3fe067030aa0f2049f744b1567 (diff) | |
Implement ROMable modules. Add math module.
mp_module_obj_t can now be put in ROM.
Configuration of float type is now similar to longint: can now choose
none, float or double as the implementation.
math module has basic math functions. For STM port, these are not yet
implemented (they are just stub functions).
Diffstat (limited to 'py/qstrdefs.h')
| -rw-r--r-- | py/qstrdefs.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index f1ba14ae6..8025b9bcc 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -1,5 +1,6 @@ // All the qstr definitions in this file are available as constants. -// That is, they are in ROM and you can reference them simple as MP_QSTR_xxxx. +// That is, they are in ROM and you can reference them simply as MP_QSTR_xxxx. +// TODO make it so we can use #defines here to select only those words that will be used Q(__build_class__) Q(__class__) @@ -115,6 +116,32 @@ Q(iterator) Q(module) Q(slice) +Q(math) +Q(pi) +Q(sqrt) +Q(pow) +Q(exp) +Q(log) +Q(log2) +Q(log10) +Q(cosh) +Q(sinh) +Q(tanh) +Q(acosh) +Q(asinh) +Q(atanh) +Q(cos) +Q(sin) +Q(tan) +Q(acos) +Q(asin) +Q(atan) +Q(atan2) + +Q(mem_total) +Q(mem_current) +Q(mem_peak) + Q(<module>) Q(<lambda>) Q(<listcomp>) |
