<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/objint_longlong.c, branch v1.8.4</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.4</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.4'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-03-10T21:52:56+00:00</updated>
<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>
<entry>
<title>py: Fix builtin abs so it works for bools and bignum.</title>
<updated>2015-03-14T22:07:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-03-14T22:07:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6837d46c1da0e7dd9cf73969bb58649222f455a4'/>
<id>urn:sha1:6837d46c1da0e7dd9cf73969bb58649222f455a4</id>
<content type='text'>
</content>
</entry>
<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: 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>
</feed>
