-
Notifications
You must be signed in to change notification settings - Fork 288
Refactor avx512bw #1602
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
Refactor avx512bw #1602
Conversation
5ff9ecd
to
2896bd0
Compare
☔ The latest upstream changes (presumably 3dd9579) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I will merge once conflicts are resolved.
crates/core_arch/src/x86/avx512bw.rs
Outdated
#[target_feature(enable = "avx512bw")] | ||
#[unstable(feature = "stdarch_x86_avx512", issue = "111137")] | ||
pub unsafe fn _knot_mask32(a: __mmask32) -> __mmask32 { | ||
a ^ 0b11111111_11111111_11111111_11111111 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be much more readable as !a
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. It might be worth pointing out that _knot_mask16
in avx512f.rs
and _knot_mask8
in avx512dq.rs
are written in the same way and should be changed in the future.
Uh oh!
There was an error while loading. Please reload this page.