<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/objint_longlong.c, branch 0.9.4</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=0.9.4</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=0.9.4'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-02-24T14:13:07+00:00</updated>
<entry>
<title>Switch exception throwing to mp_raise helpers. It saves a little code space each time to share the call.</title>
<updated>2017-02-24T14:13:07+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott.shawcroft@gmail.com</email>
</author>
<published>2017-02-24T14:13:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=12fa5b3a66d6f0034113a56c7d647c7bac5be74c'/>
<id>urn:sha1:12fa5b3a66d6f0034113a56c7d647c7bac5be74c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/objint: Rename mp_obj_int_as_float to mp_obj_int_as_float_impl.</title>
<updated>2016-12-21T00:46:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-12-21T00:46:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e4af71212550d950269f6991be187f41dcf64eee'/>
<id>urn:sha1:e4af71212550d950269f6991be187f41dcf64eee</id>
<content type='text'>
And also simplify it to remove the check for small int.  This can be done
because this function is only ever called if the argument is not a small
int.
</content>
</entry>
<entry>
<title>py/objint: Use size_t for arguments that measure bytes/sizes.</title>
<updated>2016-10-11T02:20:11+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-11T02:20:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6dff3df501242d106590a48b5ed382b01a97baea'/>
<id>urn:sha1:6dff3df501242d106590a48b5ed382b01a97baea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Use MP_SMALL_INT_POSITIVE_MASK to check if uint fits in a small int.</title>
<updated>2016-03-10T21:52:56+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-03-10T21:52:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9ae51257bd40b1f010c2abbfb0a38b6d44860ea8'/>
<id>urn:sha1:9ae51257bd40b1f010c2abbfb0a38b6d44860ea8</id>
<content type='text'>
Using the original WORD_MSBIT_HIGH-logic resulted in errors when the
object model is not REPR_A or REPR_C.
</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/objint_longlong: Instead of assert, throw OverflowError.</title>
<updated>2015-11-08T23:34:56+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-11-08T23:34:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=50f56227c651dfec18f0c72add3649ab0d678346'/>
<id>urn:sha1:50f56227c651dfec18f0c72add3649ab0d678346</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.</title>
<updated>2015-10-11T12:18:15+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-10-11T09:09:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1b586f3a734c27c78080fb2173bbde17168cb9e4'/>
<id>urn:sha1:1b586f3a734c27c78080fb2173bbde17168cb9e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function.</title>
<updated>2015-05-12T21:46:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-11T12:25:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c2a4e4effc81d8ab21bb014e34355643e5ca0da2'/>
<id>urn:sha1:c2a4e4effc81d8ab21bb014e34355643e5ca0da2</id>
<content type='text'>
Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as
the operator argument.  Hashing for int, str and bytes still go via
fast-path in mp_unary_op since they are the most common objects which
need to be hashed.

This lead to quite a bit of code cleanup, and should be more efficient
if anything.  It saves 176 bytes code space on Thumb2, and 360 bytes on
x86.

The only loss is that the error message "unhashable type" is now the
more generic "unsupported type for __hash__".
</content>
</entry>
<entry>
<title>py: Implement power op for long-long implementation of bignum.</title>
<updated>2015-04-25T22:28:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-04-25T22:28:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0f553fe10b14051aca25818b0aeac175c60889e0'/>
<id>urn:sha1:0f553fe10b14051aca25818b0aeac175c60889e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Support conversion of bignum to bytes.</title>
<updated>2015-04-25T22:16:39+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-04-25T22:16:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=271d18eb08ec488ee45f8e6cd852e8236074f082'/>
<id>urn:sha1:271d18eb08ec488ee45f8e6cd852e8236074f082</id>
<content type='text'>
This gets int.to_bytes working for bignum, and also struct.pack with 'q'
and 'Q' args on 32-bit machines.

Addresses issue #1155.
</content>
</entry>
</feed>
