51 Commits (e233a55a296a981bce5fe3a7c20049bea46e3a16)

Author SHA1 Message Date
Damien George ad2307c92c py: Temporary fix for conversion of float to int when fits in small int. 10 years ago
Damien George 6fd4b36bc5 py: Raise exception if trying to convert inf/nan to int. 10 years ago
David Steinberg 6e0b6d02db py: Fix float to int conversion for large exponents. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 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
stijn 0e557facb9 mpz: Fix 64bit msvc build 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
Paul Sokolovsky 722e562736 py: Correctly set sys.maxsize value for 64-bit. 10 years ago
Damien George 8002d5d2b9 py: Fix definition of sys.maxsize with mpz changes. 10 years ago
Damien George afb1cf75dd py: Convert (u)int to mp_(u)int_t in mpz, and remove unused function. 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 c9aa58e638 py: Improve handling of long-int overflow. 10 years ago
Damien George ffe911d228 py: Make long ints hashable. 10 years ago
Paul Sokolovsky 4e0eeebdc2 py: Implement sys.maxsize, standard way to check platform "bitness". 11 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 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 d1e355ea8e py: Fix check of small-int overflow when parsing ints. 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
Paul Sokolovsky ab7bf28489 py: More const usage. 11 years ago
Damien George d0a5bf34f7 py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 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 ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George 8f19317540 py: Remove useless implementations of NOT_EQUAL in binary_op's. 11 years ago
Damien George 88d7bba961 py: Make it so that printing a small int does not allocate heap memory. 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 ecf5b77123 py: This time, real proper overflow checking of small int power. 11 years ago
Damien George 8270e3853d py: More robust int conversion and overflow checking. 11 years ago
Damien George 660aef67c4 py: Allow multiple of str/list/tuple on left by an integer. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Damien George 0aa5d51cf1 py: Support mpz -op- float, mpz -op- complex, and complex -op- mpz. 11 years ago
Damien George 3e1a5c10c5 py: Rename old const type objects to mp_type_* for consistency. 11 years ago
Paul Sokolovsky 57207b8818 objint_mpz: Quick&dirty implementation of bitwise operations. 11 years ago
Damien George eabdf6718a py: Add function to convert long int to float. 11 years ago
Rachel Dowdall 2d15deebdc Fixed floor division on mp ints and small ints. Added a floordivide test case. 11 years ago
Rachel Dowdall 56402796d8 Fixed floor division on mp ints and small ints. Added a floordivide test case. 11 years ago
Rachel Dowdall cde8631f15 Fixed modulo operator on ints and mp ints to agree with python. Added intdivmod.c and tests/basics/modulo.py. 11 years ago
Damien George 2d7ff07175 py: Add mpz modulo operation. 11 years ago
Damien George cd8b2baf43 py: Fix bug in mpz int, where small int is on lhs, mpz on rhs. 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 5260810d70 py: Wrap mpz float functions in MICROPY_ENABLE_FLOAT. 11 years ago