25 Commits (24c3e9b283da26093ca653fc6b441042fedec135)

Author SHA1 Message Date
Damien George 27d22d8712 py/mpprint: Support printing %ld and %lu formats on 64-bit archs. 6 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Paul Sokolovsky f5e097021c py/mpprint: Fix "%x" vs "%X" regression introduced in previous commit. 7 years ago
Paul Sokolovsky 5a10e63543 py/mpprint: Support "%lx" format on 64-bit systems. 7 years ago
Paul Sokolovsky 5f8ad284f8 py/mpprint: Make "%p" format work properly on 64-bit systems. 7 years ago
Damien George 23faf88cab py/mpprint: Only check for null string printing when NDEBUG not defined. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George adf22c19ae py/mpprint: Remove unreachable check for neg return of mp_format_float. 7 years ago
Damien George d65371538d py/mpprint: Fix int formatting so "+" is printed for 0-valued integer. 8 years ago
Damien George 44bf8e1f2b py/mpprint: Add assertion for, and comment about, valid base values. 8 years ago
Damien George 6dff3df501 py/objint: Use size_t for arguments that measure bytes/sizes. 8 years ago
Delio Brignoli f98bb2ddcb py/mpprint: Fail an assertion with unsupported format specifiers. 8 years ago
Damien George 9e677114e4 py/mpprint: Fix sign extension when printf'ing %u, %x and %X. 9 years ago
Damien George d6b31e4578 py: Change mp_obj_int_is_positive to more general mp_obj_int_sign. 9 years ago
stijn 0a4eb4dbf2 py/mpprint: Fix printing of 64bit integers for 64bit windows builds 9 years ago
Damien George ab1e36dcf9 py/mpprint: Implement %llu and %lld format specifiers for mp_printf. 9 years ago
fabien.lementec e042f485ed py/mpprint: Printing of doubles is now supported (by uPy own routine). 9 years ago
Damien George c3f64d9799 py: Change qstr_* functions to use size_t as the type for str len arg. 9 years ago
Damien George 4e7107a572 py: Change mp_print_strn_t func type to use size_t for the str length. 9 years ago
Damien George 731f359292 all: Add py/mphal.h and use it in all ports. 9 years ago
Damien George 79474c6b16 py: Remove unnecessary extra handling of padding of nan/inf. 10 years ago
Damien George 2cae0f6290 py: Reduce size of mp_printf by eliminating unnecessary code. 10 years ago
stijn 861670ba2a py: Implement mp_format_float for doubles and use where appropriate 10 years ago
Damien George 044c473de2 py: Add %q format support to mp_[v]printf, and use it. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George 2801e6fad8 py: Some trivial cosmetic changes, for code style consistency. 10 years ago
Damien George fa1edff006 py: Remove unnecessary and unused sgn argument from pfenv_print_mp_int. 10 years ago
Damien George 4d77e1a034 py: Use m_{new,renew,del} consistently. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 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 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Dave Hylands b69f9fa31f Fix str.modulo when precision is specified. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George d0f9f6cd3f py: Fix pfenv_print_strn to return correct number of chars printed. 11 years ago
Damien George 348435d279 py: Reinstate old pfenv_print_int function for stmhal's printf. 11 years ago
Damien George a12a0f78b0 py: Rename pfenv_print_int to pfenv_print_mp_int, and add back former. 11 years ago
Dave Hylands c4029e5079 Add string formatting support for longlong and mpz. 11 years ago
Dave Hylands 64ef5d7f4e Change pfenv_print_int to take machine_uint_t rather than unsinged in 11 years ago
Damien George e3e0500296 py: Make pfenv.c conform to code conventions. 11 years ago
Dave Hylands 1c6b4b2e24 Reduce stack usage of pfenv_print_strn 11 years ago
Dave Hylands 80359aa96e Fix INT_BUF_SIZE to work with 32-bit and 64-bit 11 years ago
Dave Hylands baf6f14deb Enhance str.format support 11 years ago