summaryrefslogtreecommitdiffstatshomepage
path: root/py/objint.c
Commit message (Collapse)AuthorAge
* Merge branch 'master' of github.com:dpgeorge/micropythonDamien George2014-01-18
|\
| * int: Add value accessors: mp_obj_int_get() & mp_obj_int_get_checked().Paul Sokolovsky2014-01-18
| | | | | | | | | | | | mp_obj_int_get() can be used when just full resolution of C machine_int_t is required (returns truncated value of long int). mp_obj_int_get_checked() will throw exception if Python int value not representable in machine_int_t.
| * Add OverflowError and use it for small int overflow instead of assert.Paul Sokolovsky2014-01-18
| |
* | Make VM stack grow upwards, and so no reversed args arrays.Damien George2014-01-18
|/ | | | | | | | | | | | | | | Change state layout in VM so the stack starts at state[0] and grows upwards. Locals are at the top end of the state and number downwards. This cleans up a lot of the interface connecting the VM to C: now all functions that take an array of Micro Python objects are in order (ie no longer in reverse). Also clean up C API with keyword arguments (call_n and call_n_kw replaced with single call method that takes keyword arguments). And now make_new takes keyword arguments. emitnative.c has not yet been changed to comply with the new order of stack layout.
* Merge branch 'str2int' of github.com:xyb/micropython into xyb-str2intDamien George2014-01-15
|\ | | | | | | | | | | | | Conflicts: py/objint.c unix-cpy/Makefile unix/Makefile
| * add more tests and remove debug codexyb2014-01-15
| |
| * support int(str, basbase)xyb2014-01-14
| |
| * Implemented int(str) in UNIXxyb2014-01-14
| |
* | type->print(): Distinguish str() and repr() variety by passing extra param.Paul Sokolovsky2014-01-15
| |
* | Move mp_obj_int_t definition to objint.h, to reuse in long int impls.Paul Sokolovsky2014-01-13
| |
* | Cleanup built-ins, and fix some compiler warnings/errors.Damien George2014-01-13
| |
* | Add framework to support alternative implementations of long int Python type.Paul Sokolovsky2014-01-12
|/
* Merge branch 'cplusplus' of https://github.com/ian-v/micropython into ↵Damien George2014-01-07
|\ | | | | | | | | | | | | ian-v-cplusplus Conflicts: py/objcomplex.c
| * Co-exist with C++ (issue #85)ian-v2014-01-06
|/
* Convert many object types structs to use C99 tagged initializer syntax.Paul Sokolovsky2014-01-05
|
* Oops: add objint.cDamien George2014-01-05