diff options
Diffstat (limited to 'crates/tinywasm/src/interpreter/simd/utils.rs')
| -rw-r--r-- | crates/tinywasm/src/interpreter/simd/utils.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/tinywasm/src/interpreter/simd/utils.rs b/crates/tinywasm/src/interpreter/simd/utils.rs index ebba815..3d90744 100644 --- a/crates/tinywasm/src/interpreter/simd/utils.rs +++ b/crates/tinywasm/src/interpreter/simd/utils.rs @@ -9,7 +9,6 @@ impl Value128 { lane: u8, ) -> [u8; LANE_BYTES] { const { assert!(LANE_BYTES * LANE_COUNT == 16) }; - assert!((lane as usize) < LANE_COUNT); let start = lane as usize * LANE_BYTES; core::array::from_fn(|i| self.0[start + i]) } @@ -20,7 +19,6 @@ impl Value128 { value: [u8; LANE_BYTES], ) -> Self { const { assert!(LANE_BYTES * LANE_COUNT == 16) }; - assert!((lane as usize) < LANE_COUNT); let mut bytes = self.0; let start = lane as usize * LANE_BYTES; bytes[start..start + LANE_BYTES].copy_from_slice(&value); |
