58 Commits (7bd10c1ffe54f9c1e3b63f8f372c024461b3a4ff)

Author SHA1 Message Date
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
Damien George b8a053aeb1 py: Implement float and complex == and !=. 11 years ago
Damien George ae491055fa py: Fix float/complex binop returning NULL; implement complex power. 11 years ago
Damien George 5589db88c7 py: Implement complex division. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Damien George 6e54fcfd12 py: Fix typo printing complex numbers that are purely imaginary. 11 years ago
Damien George 01b877d16d py: Fix typo printing complex numbers. 11 years ago
Damien George 8767d0710e py: complex_print uses format_float if single precision fp used. 11 years ago
Damien George 6e48f7fa85 py: Allow 'complex()' to take a string as first argument. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 0c36da0b59 Implement ROMable modules. Add math module. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Damien George 099a9cb575 Remove mp_obj_new_exception_msg_1_arg and _2_arg. 11 years ago
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 11 years ago
Paul Sokolovsky c1d9bbc345 Implement __bool__ and __len__ via unary_op virtual method for all types. 11 years ago
mux 00a4da93e8 Fix implicit double conversion warning 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago