From ced3a05526ce70583f827b5d99a69f436126af20 Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Sun, 21 Nov 2021 14:35:25 -0800 Subject: [PATCH] Attempt to support to 64 lanes --- crates/core_simd/src/lane_count.rs | 3 +++ crates/test_helpers/src/lib.rs | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/crates/core_simd/src/lane_count.rs b/crates/core_simd/src/lane_count.rs index 4a5dc80049a..3b316f12b3e 100644 --- a/crates/core_simd/src/lane_count.rs +++ b/crates/core_simd/src/lane_count.rs @@ -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]; +} diff --git a/crates/test_helpers/src/lib.rs b/crates/test_helpers/src/lib.rs index 5c6478876f3..7edd6096381 100644 --- a/crates/test_helpers/src/lib.rs +++ b/crates/test_helpers/src/lib.rs @@ -376,6 +376,12 @@ fn lanes_16() { fn lanes_32() { implementation::<32>(); } + + #[test] + #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)] + fn lanes_64() { + implementation::<64>(); + } } )* } @@ -431,6 +437,12 @@ fn lanes_16() { fn lanes_32() { implementation::<32>(); } + + #[test] + #[should_panic] + fn lanes_64() { + implementation::<64>(); + } } )* } -- GitLab