Skip to content

Commit ced3a05

Browse files
Attempt to support to 64 lanes
1 parent b8d6b68 commit ced3a05

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

crates/core_simd/src/lane_count.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ impl SupportedLaneCount for LaneCount<16> {
3737
impl SupportedLaneCount for LaneCount<32> {
3838
type BitMask = [u8; 4];
3939
}
40+
impl SupportedLaneCount for LaneCount<64> {
41+
type BitMask = [u8; 8];
42+
}

crates/test_helpers/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@ macro_rules! test_lanes {
376376
fn lanes_32() {
377377
implementation::<32>();
378378
}
379+
380+
#[test]
381+
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)]
382+
fn lanes_64() {
383+
implementation::<64>();
384+
}
379385
}
380386
)*
381387
}
@@ -431,6 +437,12 @@ macro_rules! test_lanes_panic {
431437
fn lanes_32() {
432438
implementation::<32>();
433439
}
440+
441+
#[test]
442+
#[should_panic]
443+
fn lanes_64() {
444+
implementation::<64>();
445+
}
434446
}
435447
)*
436448
}

0 commit comments

Comments
 (0)