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

Enable -mbmi2 #68

Closed
konsumlamm opened this issue Apr 7, 2023 · 1 comment
Closed

Enable -mbmi2 #68

konsumlamm opened this issue Apr 7, 2023 · 1 comment

Comments

@konsumlamm
Copy link
Contributor

While working on #66, I discovered that pext#/pdep# only use hardware instructions when enabling the -mbmi2 flag. This makes selectBits up to 20x faster! This is an x86-specific flag though and it's not available everywhere, so it shouldn't be enabled by default.

@konsumlamm
Copy link
Contributor Author

I realized, we can just make the future SIMD implementation use BMI2, since that's enabled by default anyway.

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

No branches or pull requests

1 participant