58 Commits (fbdf2f1d63e39cb197e6cebb340af4a648c96121)

Author SHA1 Message Date
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
Damien George 660aef67c4 py: Allow multiple of str/list/tuple on left by an integer. 11 years ago
Damien George 6433bd927a py: Add explicit conversion from float to int via int(). 11 years ago
Damien George 3e1a5c10c5 py: Rename old const type objects to mp_type_* for consistency. 11 years ago
Damien George eabdf6718a py: Add function to convert long int to float. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 9d68e9ccdd py: Implement integer overflow checking for * and << ops. 11 years ago
Damien George 438c88dd2f Add arbitrary precision integer support. 11 years ago
Damien George 2077397118 py: Put number parsing code together in parsenum.c. 11 years ago
Damien George 2613ffde43 py: Rename strtonum to mp_strtonum. 11 years ago
Damien George 0379b55ab0 py: Fix casting and printing of small int. 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
Damien George 698ec21e46 Make mp_obj_str_get_data return char* instead of byte*. 11 years ago
Paul Sokolovsky 9b00dad7bb long int: Implement more operations. 11 years ago
Damien George 5fa93b6755 Second stage of qstr revamp: uPy str object can be qstr or not. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Paul Sokolovsky d26b379eec int: Add value accessors: mp_obj_int_get() & mp_obj_int_get_checked(). 11 years ago
Damien George 20006dbba9 Make VM stack grow upwards, and so no reversed args arrays. 11 years ago
Paul Sokolovsky 166bb40fb2 Add OverflowError and use it for small int overflow instead of assert. 11 years ago
xyb 3e4ed25138 add more tests and remove debug code 11 years ago
Paul Sokolovsky 76d982ef34 type->print(): Distinguish str() and repr() variety by passing extra param. 11 years ago
xyb 82e61bdc24 support int(str, basbase) 11 years ago
xyb c178ea471e Implemented int(str) in UNIX 11 years ago
Paul Sokolovsky 76a90f2f60 Move mp_obj_int_t definition to objint.h, to reuse in long int impls. 11 years ago