Skip to content

Commit

Permalink
Attempt to support to 64 lanes
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Nov 21, 2021
1 parent b8d6b68 commit d9f5fb8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/core_simd/src/lane_count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ impl SupportedLaneCount for LaneCount<16> {
impl SupportedLaneCount for LaneCount<32> {
type BitMask = [u8; 4];
}
impl SupportedLaneCount for LaneCount<64> {
type BitMask = [u8; 8];
}
12 changes: 12 additions & 0 deletions crates/test_helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@ macro_rules! test_lanes {
fn lanes_32() {
implementation::<32>();
}

#[test]
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
fn lanes_64() {
implementation::<64>();
}
}
)*
}
Expand Down Expand Up @@ -431,6 +437,12 @@ macro_rules! test_lanes_panic {
fn lanes_32() {
implementation::<32>();
}

#[test]
#[should_panic]
fn lanes_64() {
implementation::<64>();
}
}
)*
}
Expand Down

0 comments on commit d9f5fb8

Please sign in to comment.