summaryrefslogtreecommitdiffstatshomepage
path: root/py/objint.h
Commit message (Collapse)AuthorAge
* py: Make long ints hashable.Damien George2014-07-24
| | | | Addresses issue #765.
* py: More const usage.Paul Sokolovsky2014-05-17
|
* Add license header to (almost) all files.Damien George2014-05-03
| | | | | | | Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
* py: Make it so that printing a small int does not allocate heap memory.Damien George2014-04-08
| | | | | | | | | | | | | | With the implementation of proper string formatting, code to print a small int was delegated to mpz_as_str_inpl (after first converting the small int to an mpz using stack memory). But mpz_as_str_inpl allocates heap memory to do the conversion, so small ints needed heap memory just to be printed. This fix has a separate function to print small ints, which does not allocate heap, and allocates less stack. String formatting, printf and pfenv are now large beasts, with some semi-duplicated code.
* Add string formatting support for longlong and mpz.Dave Hylands2014-04-07
|
* py: Make False and True act like 0 and 1 for integer arithmetic.Damien George2014-04-04
|
* Add arbitrary precision integer support.Damien George2014-02-22
| | | | | Some functionality is still missing (eg and, or, bit shift), and some things are buggy (eg subtract).
* py: Revent some long int configuration.Damien George2014-02-15
|
* Small change to configuration of long int.Damien George2014-02-15
|
* ffi: Implement ffivar.get()/set() methods.Paul Sokolovsky2014-02-14
| | | | | Done by introducing another factored out helper API in binary.c. This API can be reused also by array and struct modules.
* long int: Implement more operations.Paul Sokolovsky2014-01-27
|
* 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