gh-100239: specialize small integer powers (x**2, x**3) of compact ints - #156918
Open
cocolato wants to merge 1 commit into
Open
gh-100239: specialize small integer powers (x**2, x**3) of compact ints#156918cocolato wants to merge 1 commit into
cocolato wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend the
binaryop_extend_descrstable withNB_POWER/NB_INPLACE_POWERdescriptors that strength-reducex ** 2andx ** 3on exact compact ints intox*xandx*x*x.Test on
Apple M5 Pro, 15 cores 48 GB macOS 26.6.2, n = 2,000,000 x 4 passes for every workload;:pow_mixed((i&7)**2 + (i&3)**3)pow3(x**3)pow2(x**2)poly(3*a**2 + 5*a + 7)miss((i&7)**4, guard must reject)