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 niklasf
Recipients louielu, mark.dickinson, niklasf
Date 2017-07-25.12:48:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500986884.91.0.522602979941.issue31031@psf.upfronthosting.co.za>
In-reply-to
Content
My previous patch to optimize bits_in_digit was
rejected: http://bugs.python.org/issue29782

This leaves this issue open (mathmodule.c):

/* XXX: This routine does more or less the same thing as
 * bits_in_digit() in Objects/longobject.c.  Someday it would be nice to
 * consolidate them.  On BSD, there's a library function called fls()
 * that we could use, and GCC provides __builtin_clz().
 */

We could still deal with the code duplication without the
complexity of the optimizations in the previous patch.
History
Date User Action Args
2017-07-25 12:48:04niklasfsetrecipients: + niklasf, mark.dickinson, louielu
2017-07-25 12:48:04niklasfsetmessageid: <1500986884.91.0.522602979941.issue31031@psf.upfronthosting.co.za>
2017-07-25 12:48:04niklasflinkissue31031 messages
2017-07-25 12:48:04niklasfcreate