<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/mpprint.c, branch cross</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=cross</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=cross'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-02-01T15:08:42+00:00</updated>
<entry>
<title>py/mpprint: Fix sign extension when printf'ing %u, %x and %X.</title>
<updated>2016-02-01T15:08:42+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-02-01T15:08:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9e677114e4aba8fdb417350a87ce1af33cef127f'/>
<id>urn:sha1:9e677114e4aba8fdb417350a87ce1af33cef127f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change mp_obj_int_is_positive to more general mp_obj_int_sign.</title>
<updated>2016-01-07T14:29:12+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-07T14:29:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d6b31e4578a9f7ed4f970774fe91eeb811b1d475'/>
<id>urn:sha1:d6b31e4578a9f7ed4f970774fe91eeb811b1d475</id>
<content type='text'>
This function returns the sign (-1, 0 or 1) of the integer object.
</content>
</entry>
<entry>
<title>py/mpprint: Fix printing of 64bit integers for 64bit windows builds</title>
<updated>2015-12-19T01:15:58+00:00</updated>
<author>
<name>stijn</name>
<email>stinos@zoho.com</email>
</author>
<published>2015-12-18T09:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0a4eb4dbf2df34b9a2efcf55855b9db7c7132bf7'/>
<id>urn:sha1:0a4eb4dbf2df34b9a2efcf55855b9db7c7132bf7</id>
<content type='text'>
This makes all tests pass again for 64bit windows builds which would
previously fail for anything printing ranges (builtin_range/unpack1)
because they were printed as range( ld, ld ).

This is done by reusing the mp_vprintf implementation for MICROPY_OBJ_REPR_D
for 64bit windows builds (both msvc and mingw-w64) since the format specifier
used for 64bit integers is also %lld, or %llu for the unsigned version.

Note these specifiers used to be fetched from inttypes.h, which is the
C99 way of working with printf/scanf in a portable way, but mingw-w64
wants to be backwards compatible with older MS C runtimes and uses
the non-portable %I64i instead of %lld in inttypes.h, so remove the use
of said header again in mpconfig.h and define the specifiers manually.
</content>
</entry>
<entry>
<title>py/mpprint: Implement %llu and %lld format specifiers for mp_printf.</title>
<updated>2015-12-17T11:41:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-12-17T11:41:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ab1e36dcf9b7182d18704f627aff461ce87d7d09'/>
<id>urn:sha1:ab1e36dcf9b7182d18704f627aff461ce87d7d09</id>
<content type='text'>
Only enabled for MICROPY_OBJ_REPR_D.
</content>
</entry>
<entry>
<title>py/mpprint: Printing of doubles is now supported (by uPy own routine).</title>
<updated>2015-12-02T12:21:36+00:00</updated>
<author>
<name>fabien.lementec</name>
<email>fabien.lementec@gmail.com</email>
</author>
<published>2015-11-30T15:00:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e042f485ed9fc71b0a8ceca1dca89fe29d2179df'/>
<id>urn:sha1:e042f485ed9fc71b0a8ceca1dca89fe29d2179df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change qstr_* functions to use size_t as the type for str len arg.</title>
<updated>2015-11-29T14:25:04+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-27T12:23:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c3f64d9799cdf8af88087eebe6628e83d658405c'/>
<id>urn:sha1:c3f64d9799cdf8af88087eebe6628e83d658405c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change mp_print_strn_t func type to use size_t for the str length.</title>
<updated>2015-11-29T14:25:04+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-27T12:19:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4e7107a572b55321f3f483f0293dd19b4f752c9b'/>
<id>urn:sha1:4e7107a572b55321f3f483f0293dd19b4f752c9b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: Add py/mphal.h and use it in all ports.</title>
<updated>2015-10-31T16:14:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-10-30T23:03:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=731f359292c0e2630873df1a19c5baac7287024f'/>
<id>urn:sha1:731f359292c0e2630873df1a19c5baac7287024f</id>
<content type='text'>
py/mphal.h contains declarations for generic mp_hal_XXX functions, such
as stdio and delay/ticks, which ports should provide definitions for.  A
port will also provide mphalport.h with further HAL declarations.
</content>
</entry>
<entry>
<title>py: Remove unnecessary extra handling of padding of nan/inf.</title>
<updated>2015-05-28T14:22:12+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-28T14:22:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=79474c6b164fb66a8d348bfa57613f9dbf5af4e8'/>
<id>urn:sha1:79474c6b164fb66a8d348bfa57613f9dbf5af4e8</id>
<content type='text'>
C's printf will pad nan/inf differently to CPython.  Our implementation
originally conformed to C, now it conforms to CPython's way.

Tests for this are also added in this patch.
</content>
</entry>
<entry>
<title>py: Reduce size of mp_printf by eliminating unnecessary code.</title>
<updated>2015-05-28T13:54:56+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-28T13:54:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2cae0f62908812b6cd925943ee70e7e0bef0387e'/>
<id>urn:sha1:2cae0f62908812b6cd925943ee70e7e0bef0387e</id>
<content type='text'>
Saves around 120 bytes on Thumb2 archs.
</content>
</entry>
</feed>
