[issue19904] Add 128-bit integer support to struct
Antoine Pitrou
report at bugs.python.org
Sat Dec 7 02:37:29 CET 2013
Antoine Pitrou added the comment:
> any form of integer SIMD operation (vectors)
Wouldn't these be appropriately represented by a tuple of integers (or floats)? For example, a SIMD vector of four 32-bit integers could be represented as four Python ints. Or would that be "terrible for performance"?
Note that the struct module may include support for int128_t, but it certainly won't have native support for every SIMD vector format under the sun (if they have different alignment requirements).
> hosting and maintaining hash values which are routinely 128-bit and greater
That sounds like a job for a bytes object (as returned by e.g. hashlib.sha1(...).digest()).
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19904>
_______________________________________
More information about the Python-bugs-list
mailing list