134 Commits (5d4bfce034ace816d67081d6286185d2e35b7125)

Author SHA1 Message Date
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George 6837d46c1d py: Fix builtin abs so it works for bools and bignum. 10 years ago
Damien George 4d77e1a034 py: Use m_{new,renew,del} consistently. 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
David Steinberg 0fb17f6ef4 py: Use float-to-int classifications for mp_obj_new_int_from_float() functions 10 years ago
David Steinberg ca377b10de py: Add float-to-int classification function 10 years ago
Damien George 05005f679e py: Remove mp_obj_str_builder and use vstr instead. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Paul Sokolovsky f79cd6a233 py: Implement mp_obj_new_int_from_float() for MICROPY_LONGINT_IMPL_NONE. 10 years ago
Paul Sokolovsky 12033df511 py: Partially fix float to int conversion. 10 years ago
Damien George be6d8be91e py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. 10 years ago
Damien George fcdb239815 py: Make int.to_bytes work on big endian machine. 10 years ago
Damien George 42f3de924b py: Convert [u]int to mp_[u]int_t where appropriate. 10 years ago
Damien George 953074315e py: Enable struct/binary-helper to parse q and Q sized ints. 10 years ago
Damien George 4abff7500f py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. 10 years ago
Damien George d182b98a37 py: Change all uint to mp_uint_t in obj.h. 10 years ago
Damien George 1c70cbf151 py: Save about 200 bytes of ROM by using smaller type for static table. 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 a75b02ea9b py: Improve efficiency of MP_OBJ_IS_STR_OR_BYTES. 10 years ago
Dave Hylands b7f7c655ed Make int(b'123') work properly. 10 years ago
Damien George 9b7a8ee8f1 py: Fix mult by negative number of tuple, list, str, bytes. 10 years ago
Damien George bb4c6f35c6 py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. 10 years ago
Damien George ffe911d228 py: Make long ints hashable. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky d72bc2713a objint: Fix corner case in buffer access. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George d1e355ea8e py: Fix check of small-int overflow when parsing ints. 11 years ago
Damien George 813ed3bda6 py: Make int(<longint>) work by just returning the longint. 11 years ago
Damien George 503d611033 py: Implement long int parsing in int(...). 11 years ago
Damien George 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. 11 years ago
Sven Wegener 7ba0fedf13 py: Fix mp_obj_t -> mp_const_obj_t for mp_obj_int_get_checked() 11 years ago
Paul Sokolovsky ab7bf28489 py: More const usage. 11 years ago
Damien George ee7a880d6e py: Use mp_arg_check_num in more places. 11 years ago
stijn 01d6be4d51 Windows MSVC port 11 years ago
Damien George a32c1e41cc py: Improve native emitter; now supports more opcodes. 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 b11b85adaa py: Allow to pass buffer protocol flags to get_buffer helper funcs. 11 years ago
Damien George 57a4b4f178 py: Add typecode to buffer protocol. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George b9e7ed4ebc py: Oops, fix int.from_bytes to correctly convert bytes! 11 years ago
Damien George 5213eb35b5 py: Make int.from_bytes a classmethod; support arbitrary length buf. 11 years ago
Damien George 88d7bba961 py: Make it so that printing a small int does not allocate heap memory. 11 years ago
Paul Sokolovsky a985b4593d objint: Implement int.from_bytes() class method and .to_bytes() method. 11 years ago
Dave Hylands 23dc6d0ace Fix truncation problem when using longlong implementation. 11 years ago
Dave Hylands c4029e5079 Add string formatting support for longlong and mpz. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Damien George e8208a7f02 py: Make False and True act like 0 and 1 for integer arithmetic. 11 years ago