This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients gladman, mark.dickinson, pitrou, scoder, serhiy.storchaka, wolma
Date 2014-09-25.20:13:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <4082432.VZ0hddVBaq@raxxla>
In-reply-to <>
Now I spent more time on the patch. Changes in updated patch:

* Removed code duplication for odd and even k.
* Temporary buffers c and d no longer allocated on every iteration.
* Long result now compacted. No longer unused allocated size.
* Added checks for results of long_abs() (it can fail).
* Merged _PyLong_GCD and long_gcd. Fast path for small negative integers no longer need to copy long objects in long_abs().
* Added tests for large negative numbers and for case Py_SIZE(a) - Py_SIZE(b) > 3.
File name Uploaded
lehmer_gcd_6.patch serhiy.storchaka, 2014-09-25.20:13:12
Date User Action Args
2014-09-25 20:13:12serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, pitrou, scoder, wolma, gladman
2014-09-25 20:13:12serhiy.storchakalinkissue22486 messages
2014-09-25 20:13:12serhiy.storchakacreate