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 mark.dickinson
Recipients mark.dickinson
Date 2016-09-10.10:46:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473504373.09.0.740082667997.issue28060@psf.upfronthosting.co.za>
In-reply-to
Content
We seem to have ended up with redundant fast path checks for division in longobject.c: long_div has a fast path check, but the long_div slow path calls l_divmod, which then does a second, identical, fast path check. long_mod has similar behaviour. long_divmod, however, has no fast path, so relies on the one from l_divmod.

This patch removes the extra fast path from l_divmod, and then adds a top-level fast path check to long_divmod.
History
Date User Action Args
2016-09-10 10:46:13mark.dickinsonsetrecipients: + mark.dickinson
2016-09-10 10:46:13mark.dickinsonsetmessageid: <1473504373.09.0.740082667997.issue28060@psf.upfronthosting.co.za>
2016-09-10 10:46:13mark.dickinsonlinkissue28060 messages
2016-09-10 10:46:12mark.dickinsoncreate