77 Commits (b796f1e3f12f3c0a0a75b4b1b7f01f234a3f4dda)

Author SHA1 Message Date
Jim Mussared 94beeabd2e py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
Jim Mussared 662b9761b3 all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE. 3 years ago
Damien George 4fe3e493b1 py/obj: Make mp_obj_get_complex_maybe call mp_obj_get_float_maybe first. 2 years ago
Andrew Leech 1e87b56219 py/obj: Add support for __float__ and __complex__ functions. 2 years ago
Damien George 627ba38154 py/parsenum: Optimise when building with complex disabled. 2 years ago
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable. 3 years ago
Damien George 9f911d822e py/objcomplex: Add mp_obj_get_complex_maybe for use in complex bin-op. 4 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George 9ec1caf42e py: Expand type equality flags to 3 separate ones, fix bool/namedtuple. 5 years ago
Nicko van Someren 3aab54bf43 py: Support non-boolean results for equality and inequality tests. 5 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Damien George b01f66c5f1 py: Shorten error messages by using contractions and some rewording. 6 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Damien George fdb2aa81b7 py/{objfloat,objcomplex}: Optimise MP_UNARY_OP_ABS by reusing variables. 7 years ago
Paul Sokolovsky 9dce823cfd py/modbuiltins: Implement abs() by dispatching to MP_UNARY_OP_ABS. 7 years ago
Damien George 58321dd985 all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate 7 years ago
Damien George 103ae43f95 py/objcomplex: Remove unnecessary assignment of variable. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 48d867b4a6 all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers. 8 years ago
Damien George 7a72c0db5a py: Reduce str/repr precision of float numbers when floats are 30-bit. 8 years ago
Damien George 19f2e47d59 py: Add very simple but correct hashing for float and complex numbers. 8 years ago
Damien George 6b34107537 py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg. 8 years ago
Damien George bd04ed3e8a py/objcomplex: Fix typo in ternary expression. 8 years ago
Damien George 3ed0e5e5d4 py/objcomplex: Correctly handle case of 0j to power of something. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Damien George 5b3f0b7f39 py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Paul Sokolovsky 1b586f3a73 py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. 9 years ago
stijn 861670ba2a py: Implement mp_format_float for doubles and use where appropriate 10 years ago
stijn 709955b601 py: Fix printing of complex number when imaginary part is nan 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George b1bbe966c4 py: Combine load_attr and store_attr type methods into one (attr). 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George f49782f005 py: Fix cmath.log10; fix printing of complex number with negative imag. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 30d8a82220 py: Allow to compile with -Wredundant-decls. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 20beff9ae3 py and libm: Add asinf,acosf; print higher precision for float. 10 years ago
Damien George d182b98a37 py: Change all uint to mp_uint_t in obj.h. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George f20375eedd py: Add .real and .imag attributes to complex numbers. 10 years ago
Paul Sokolovsky 3b6f7b95eb py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. 11 years ago
Damien George ee7a880d6e py: Use mp_arg_check_num in more places. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago