<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/objint.c, branch v1.3.9</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.9</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.9'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-01-24T20:54:28+00:00</updated>
<entry>
<title>py: Use float-to-int classifications for mp_obj_new_int_from_float() functions</title>
<updated>2015-01-24T20:54:28+00:00</updated>
<author>
<name>David Steinberg</name>
<email>david.steinberg.dev@gmail.com</email>
</author>
<published>2015-01-13T15:22:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0fb17f6ef46ade018a3fda8d4266f15638ddf5e3'/>
<id>urn:sha1:0fb17f6ef46ade018a3fda8d4266f15638ddf5e3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Add float-to-int classification function</title>
<updated>2015-01-24T20:54:28+00:00</updated>
<author>
<name>David Steinberg</name>
<email>david.steinberg.dev@gmail.com</email>
</author>
<published>2015-01-13T15:21:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ca377b10de006b48f75383664f5f765b202412df'/>
<id>urn:sha1:ca377b10de006b48f75383664f5f765b202412df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Remove mp_obj_str_builder and use vstr instead.</title>
<updated>2015-01-21T23:18:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-21T22:48:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=05005f679e00241e15a87751d89327f2c4630cb6'/>
<id>urn:sha1:05005f679e00241e15a87751d89327f2c4630cb6</id>
<content type='text'>
With this patch str/bytes construction is streamlined.  Always use a
vstr to build a str/bytes object.  If the size is known beforehand then
use vstr_init_len to allocate only required memory.  Otherwise use
vstr_init and the vstr will grow as needed.  Then use
mp_obj_new_str_from_vstr to create a str/bytes object using the vstr
memory.

Saves code ROM: 68 bytes on stmhal, 108 bytes on bare-arm, and 336 bytes
on unix x64.
</content>
</entry>
<entry>
<title>py, unix: Allow to compile with -Wunused-parameter.</title>
<updated>2015-01-20T12:47:20+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-20T12:47:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660'/>
<id>urn:sha1:ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660</id>
<content type='text'>
See issue #699.
</content>
</entry>
<entry>
<title>py, unix: Allow to compile with -Wsign-compare.</title>
<updated>2015-01-16T17:47:07+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-16T17:47:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=963a5a3e82ded7ee75adae72ae7cb14796fa150e'/>
<id>urn:sha1:963a5a3e82ded7ee75adae72ae7cb14796fa150e</id>
<content type='text'>
See issue #699.
</content>
</entry>
<entry>
<title>py: Move to guarded includes, everywhere in py/ core.</title>
<updated>2015-01-01T20:32:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-01T20:27:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=51dfcb4bb7613ed164952712d9a5235a7b833cde'/>
<id>urn:sha1:51dfcb4bb7613ed164952712d9a5235a7b833cde</id>
<content type='text'>
Addresses issue #1022.
</content>
</entry>
<entry>
<title>py: Implement mp_obj_new_int_from_float() for MICROPY_LONGINT_IMPL_NONE.</title>
<updated>2014-12-29T22:33:32+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-12-29T22:33:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f79cd6a2330bce1d7bf886a440d80441cdbf9209'/>
<id>urn:sha1:f79cd6a2330bce1d7bf886a440d80441cdbf9209</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Partially fix float to int conversion.</title>
<updated>2014-12-29T22:22:50+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-12-29T22:22:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=12033df511a5a5f0237a764379aacfbceb6c45dd'/>
<id>urn:sha1:12033df511a5a5f0237a764379aacfbceb6c45dd</id>
<content type='text'>
This fixes conversion when float type has more mantissa bits than small int,
and float value has small exponent. This is for example the case of 32-bit
platform using doubles, and converting value of time.time(). Conversion of
floats with larg exponnet is still not handled correctly.
</content>
</entry>
<entry>
<title>py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack.</title>
<updated>2014-12-05T23:13:52+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-12-05T23:13:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=be6d8be91e133e98117025062df0e63aaf87efd2'/>
<id>urn:sha1:be6d8be91e133e98117025062df0e63aaf87efd2</id>
<content type='text'>
mp_obj_int_get_truncated is used as a "fast path" int accessor that
doesn't check for overflow and returns the int truncated to the machine
word size, ie mp_int_t.

Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word
sized values.

Addresses issues #779 and #998.
</content>
</entry>
<entry>
<title>py: Make int.to_bytes work on big endian machine.</title>
<updated>2014-10-06T13:45:34+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-06T13:45:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fcdb2398156bb208c2bf54dd184835038f2398f5'/>
<id>urn:sha1:fcdb2398156bb208c2bf54dd184835038f2398f5</id>
<content type='text'>
Partly addresses issue #856.
</content>
</entry>
</feed>
