bpo-44376 - reduce pow() overhead for small exponents#26662
Merged
Merged
bpo-44376 - reduce pow() overhead for small exponents#26662
Commits
Commits on Jun 11, 2021
First stab.
Show description for 9a2d559committedRepair that, e.g, pow(False, 1) returned False instead of 0.
Show description for ff6e798committed- committed
Search for the most significant exponent bit right-to-left
Show description for e8c4034committed- authored
- committed
Skip the binary business entirely for exponents <= 3. It can't win
Show description for 7587a02committedMake the bitmask variable of type `digit`. Using a giant signed int
Show description for 2386d88committed
Commits on Jun 12, 2021
And one more stab to reduce overhead for exponents <= 3.
Show description for c424322committed- committed