Message411428
I'm not inclined to change anything here. It's a trivial point, and by "primitive" I had in mind a dedicated hardware instruction, blazing fast. Yes, I was aware of long-winded ways of doing it for specific fixed integer widths. But that's not what `O(1)` means. A dead obvious loop testing each bit, one at a time, starting with the MSB, until finding the first bit set, is also O(1) for any fixed-width int size.
So I'm not doing anything here. If someone else creates a PR with text they want to see instead, I'll review it, and if it's not unbearably pedantic ;-) I'll merge it. |
|
Date |
User |
Action |
Args |
2022-01-23 22:24:07 | tim.peters | set | recipients:
+ tim.peters, rhettinger, docs@python, chemoelectric |
2022-01-23 22:24:06 | tim.peters | set | messageid: <1642976646.35.0.779833856126.issue46488@roundup.psfhosted.org> |
2022-01-23 22:24:06 | tim.peters | link | issue46488 messages |
2022-01-23 22:24:06 | tim.peters | create | |
|