A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-July/148535.html below:

[Python-Dev] 64 bit units in PyLong

[Python-Dev] 64 bit units in PyLong [Python-Dev] 64 bit units in PyLongVictor Stinner victor.stinner at gmail.com
Mon Jul 3 04:05:20 EDT 2017
2017-07-03 6:52 GMT+02:00 Siyuan Ren <netheril96 at gmail.com>:
> The current PyLong implementation represents arbitrary precision integers in
> units of 15 or 30 bits. I presume the purpose is to avoid overflow in
> addition , subtraction and multiplication. But compilers these days offer
> intrinsics that allow one to access the overflow flag, and to obtain the
> result of 64 bit multiplication as a 128 bit number.

The question is the performance. Is it fast? :-)

You can try to write a patch and run a benchmark.

See for example http://pyperformance.readthedocs.io/ for benchmarks.

Victor
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4