32 Commits (637aa9784dc96301cfa5c4ccdd0ab1ae7bad5744)

Author SHA1 Message Date
Paul Sokolovsky 9dce823cfd py/modbuiltins: Implement abs() by dispatching to MP_UNARY_OP_ABS. 7 years ago
Damien George 58321dd985 all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Alexander Steffen 299bc62586 all: Unify header guard usage. 7 years ago
Damien George fc245d1ca4 py/objint: Consolidate mp_obj_new_int_from_float to one implementation. 8 years ago
Nicko van Someren df0117c8ae py: Added optimised support for 3-argument calls to builtin.pow() 8 years ago
Paul Sokolovsky bec7bfb29d py/objint: from_bytes(): Implement "byteorder" param and arbitrary precision. 8 years ago
Damien George e4af712125 py/objint: Rename mp_obj_int_as_float to mp_obj_int_as_float_impl. 8 years ago
Damien George 6dff3df501 py/objint: Use size_t for arguments that measure bytes/sizes. 8 years ago
Damien George 8bb7d958f1 py: Factor duplicated function to calculate size of formatted int. 8 years ago
Damien George d6b31e4578 py: Change mp_obj_int_is_positive to more general mp_obj_int_sign. 9 years ago
Damien George 271d18eb08 py: Support conversion of bignum to bytes. 10 years ago
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
David Steinberg ca377b10de py: Add float-to-int classification function 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 42f3de924b py: Convert [u]int to mp_[u]int_t where appropriate. 10 years ago
Damien George b92cbe6129 py: Move definition of mp_sys_exit to core. 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 ffe911d228 py: Make long ints hashable. 10 years ago
Paul Sokolovsky ab7bf28489 py: More const usage. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 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 e8208a7f02 py: Make False and True act like 0 and 1 for integer arithmetic. 11 years ago
Damien George 438c88dd2f Add arbitrary precision integer support. 11 years ago
Damien George 96056a6272 py: Revent some long int configuration. 11 years ago
Damien George 36109d246f Small change to configuration of long int. 11 years ago
Paul Sokolovsky 8bc3516389 ffi: Implement ffivar.get()/set() methods. 11 years ago
Paul Sokolovsky 9b00dad7bb long int: Implement more operations. 11 years ago
Paul Sokolovsky 76d982ef34 type->print(): Distinguish str() and repr() variety by passing extra param. 11 years ago
Paul Sokolovsky 76a90f2f60 Move mp_obj_int_t definition to objint.h, to reuse in long int impls. 11 years ago