Skip to content

Conversation

@hkBst
Copy link
Member

@hkBst hkBst commented Jul 4, 2025

type BitMask = [u8; Self::LEN];
const EMPTY_BIT_MASK: Self::BitMask = [0; Self::LEN];
const FULL_BIT_MASK: Self::BitMask = {
const LEN: usize = ($lanes + 7) / 8;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, it didn't work in this scope?

Copy link
Member Author

@hkBst hkBst Jul 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it has the right scope to be used for BitMask, but looking at this code again, I'm wondering why I didn't reuse the LaneCount::BITMASK_LEN...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now done, seems much better.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@calebzulawski calebzulawski merged commit 3439347 into rust-lang:master Jul 5, 2025
59 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