52 Commits (fa15aed0f718562871288aa174e91507a134db28)

Author SHA1 Message Date
Damien George efe23aca71 all: Remove third argument to MP_REGISTER_MODULE. 2 years ago
Jim Mussared d8d3e6ae78 py: Make builtin modules use MP_REGISTER_MODULE. 3 years ago
stijn dd6967202a py/modmath: Add math.tau, math.nan and math.inf constants. 5 years ago
Damien George 0091041f5a py/modmath: Simplify handling of positional args to reduce code size. 4 years ago
Emil Renner Berthing 9aa58cf8ba py, extmod: Add explicit initializers for default values. 4 years ago
stijn 2e54d9d146 py: Fix handling of NaN in certain pow implementations. 4 years ago
stijn 81db22f693 py/modmath: Work around msvc float bugs in atan2, fmod and modf. 5 years ago
stijn 84fa3312cf all: Format code to add space after C++-style comment start. 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Damien George ad9a0ec8ab all: Convert exceptions to use mp_raise_XXX helpers in remaining places. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
stijn af5c998f37 py/modmath: Implement math.isclose() for non-complex numbers. 5 years ago
Christopher Swenson 8c656754aa py/modmath: Add math.factorial, optimised and non-opt implementations. 6 years ago
Damien George b01f66c5f1 py: Shorten error messages by using contractions and some rewording. 6 years ago
Damien George d8d4e4dfbe py/modmath: Convert log2 macro into a function. 7 years ago
Damien George 25e140652b py/modmath: Add full checks for math domain errors. 7 years ago
Damien George 0102ee092b py: Change obsolete "///" comment formatting to normal comments. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 6b8b56f859 py/modmath: Check for zero division in log with 2 args. 7 years ago
Damien George 48d867b4a6 all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers. 8 years ago
Damien George febeff4af4 py/modmath: Allow trunc/ceil/floor to return a big int if necessary. 8 years ago
Damien George 561844f3ba py: Add MICROPY_FLOAT_CONST macro for defining float constants. 8 years ago
Damien George 93c4a6a3f7 all: Remove 'name' member from mp_obj_module_t struct. 8 years ago
Colin Hogben a896951a9a py/objfloat, py/modmath: Ensure M_PI and M_E defined. 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Michael Buesch 17298af61e py/modmath: Add domain error checking to sqrt, log, log2, log10. 9 years ago
Damien George cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
Damien George a24eafacc9 py/modmath: Make log2, log10 and hyperbolic funcs be SPECIAL_FUNCTIONS. 9 years ago
Paul Sokolovsky 863d4cd862 py/modmath: Don't create symbol entry for expm1() if not needed. 9 years ago
Paul Sokolovsky 0d6116d86b py/modmath: Make expm1() be in MICROPY_PY_MATH_SPECIAL_FUNCTIONS. 9 years ago
Paul Sokolovsky 6d1eabfeaa unix/mpconfigport: Move log2() definition to modmath.c. 9 years ago
Damien George 7e359c648b py: Move float e/pi consts to objfloat and make mp_obj_float_t private. 9 years ago
Paul Sokolovsky 1b586f3a73 py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. 9 years ago
Damien George 6f49520042 py: Implement second arg for math.log (optional value for base). 10 years ago
Damien George 5cbeacebdb py: Make math special functions configurable and disabled by default. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 969a6b37bf py: Make functions static where appropriate. 10 years ago
Damien George 3b603f29ec Use MP_DEFINE_CONST_DICT macro to define module dicts. 10 years ago
Damien George 30dd23aa7f doc: Document gc, sys, math, cmath. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Emmanuel Blot f6932d6506 Prefix ARRAY_SIZE with micropython prefix MP_ 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George ee3fd46f13 Rename configuration variables controling Python features. 11 years ago
Antonin ENFRUN da1fffaa09 Fix some unused variables, and silence a clang warning about initialization override in vmentrytable.h 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George 6d3c5e4301 Add ARRAY_SIZE macro, and use it where possible. 11 years ago
Damien George dbdfee15a1 py: Add cmath module, for complex math. Disabled by default. 11 years ago
Damien George 8b0535e23f py: Change module globals from mp_map_t* to mp_obj_dict_t*. 11 years ago
Damien George 084ef373fb py: Fix math.{ceil,floor,trunc} to return int. 11 years ago