use div_ceil instead of manual logic
This commit is contained in:
parent
aaf8ff1f9e
commit
5a26848a5a
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ pub struct LaneCount<const N: usize>;
|
|||
|
||||
impl<const N: usize> LaneCount<N> {
|
||||
/// The number of bytes in a bitmask with this many lanes.
|
||||
pub const BITMASK_LEN: usize = (N + 7) / 8;
|
||||
pub const BITMASK_LEN: usize = N.div_ceil(8);
|
||||
}
|
||||
|
||||
/// Statically guarantees that a lane count is marked as supported.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue