Skip to content
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

Reinstate dec/inc integral optimisation #1886

Merged
merged 6 commits into from
Jul 15, 2024
Merged

Conversation

jfalcou
Copy link
Owner

@jfalcou jfalcou commented Jul 9, 2024

Masked dec and inc on integral values with wide logical can be optimized to be branchless/if_else less by addign or substarcting the mask as an integer itself.

This was an optimization we had long ago and that disappeared through one of our recent refactoring and was pointerd out to me during my recent tutorial workshop at the LAPP.

This PR resinstates those optimisations.

@jfalcou jfalcou force-pushed the feat/optimize-masked-inc-dec branch from 9d083f6 to 1029262 Compare July 9, 2024 11:55
@jfalcou jfalcou force-pushed the feat/optimize-masked-inc-dec branch from c115f30 to 13a0d25 Compare July 9, 2024 16:07
@jfalcou jfalcou merged commit 580abc2 into main Jul 15, 2024
32 checks passed
@jfalcou jfalcou deleted the feat/optimize-masked-inc-dec branch July 15, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant