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 tim.peters
Recipients tim.peters
Date 2022-01-02.22:48:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641163706.78.0.392911165646.issue46233@roundup.psfhosted.org>
In-reply-to
Content
longobject.c's x_mul()'s special code for squaring gets kind of sloppy at the end of a digit pass, doing a useless add of 0 and an "extra" test for carry. Easily cleaned up.

I think the underlying cause is that the HAC algorithm description it was modeled on was quite "hand wavy" about how badly, and exactly when, the carry can exceed a single digit. Things are better-behaved at the end of a digit pass.
History
Date User Action Args
2022-01-02 22:48:26tim.peterssetrecipients: + tim.peters
2022-01-02 22:48:26tim.peterssetmessageid: <1641163706.78.0.392911165646.issue46233@roundup.psfhosted.org>
2022-01-02 22:48:26tim.peterslinkissue46233 messages
2022-01-02 22:48:26tim.peterscreate