Skip to content

clippy fix: use div_ceil#468

Merged
calebzulawski merged 1 commit into
rust-lang:masterfrom
hkBst:div-ceil
Jul 5, 2025
Merged

clippy fix: use div_ceil#468
calebzulawski merged 1 commit into
rust-lang:masterfrom
hkBst:div-ceil

Conversation

@hkBst

@hkBst hkBst commented Jul 4, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
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?

@hkBst hkBst Jul 5, 2025

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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
Copy Markdown
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