-
Notifications
You must be signed in to change notification settings - Fork 712
Specialize powi instruction #3148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3148 +/- ##
==========================================
+ Coverage 81.32% 81.33% +0.01%
==========================================
Files 817 817
Lines 117804 117807 +3
==========================================
+ Hits 95802 95820 +18
+ Misses 22002 21987 -15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I couldn't work out how to push a PR/PR when you're on a fork. But, consider specializing the base int op too?
|
This PR has been marked as stale because it has not been updated for over a month |
This PR has been marked as stale because it has not been updated for over a month |
Pull Request Template
Specialize powi for -1 (recip), 1 (id), 2 (sqr). Otherwise use floating point fallback. Update more places to use powi_scalar when possible.
TODO: Not 100% sure yet if this is actually faster due to inplace operations.
TODO: specialize 3/4/8 as well? -2/-4/-8?