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

Follow-up fixes for to_bitmask #377

Merged
merged 1 commit into from
Nov 19, 2023
Merged

Follow-up fixes for to_bitmask #377

merged 1 commit into from
Nov 19, 2023

Conversation

calebzulawski
Copy link
Member

I also noticed my non-power-of-two code wasn't hit because the #[cfg] was wrong (should have been #[cfg(feature = "all_lane_counts")]. It turns out the bitmask intrinsics need a power of two (otherwise they need to use e.g. u17 as the return type), so I changed to expand to power-of-twos, at least for now.

@calebzulawski
Copy link
Member Author

I'm not sure why our clippy config didn't pick up the bad #[cfg], I only saw it when trying to sync back to rust-lang/rust

@calebzulawski calebzulawski merged commit e0e9a45 into master Nov 19, 2023
66 checks passed
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.

2 participants