Attempt to support to 64 lanes

This commit is contained in:
Jubilee Young 2021-11-21 14:35:25 -08:00 committed by Jubilee
parent b8d6b68446
commit ced3a05526
2 changed files with 15 additions and 0 deletions

View File

@ -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];
}

View File

@ -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>();
}
}
)*
}