Skip to content

Commit

Permalink
fix: simd128 in fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 committed Oct 18, 2024
1 parent a3ef667 commit 0ee60ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/simd/v128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub struct Simd128u([u8; 16]);
pub struct Mask128([u8; 16]);

impl Simd for Simd128i {
type Element = i8;
const LANES: usize = 16;
type Mask = Mask128;

Expand All @@ -38,7 +39,7 @@ impl Simd for Simd128i {
Mask128(mask)
}

fn splat(value: u8) -> Self {
fn splat(value: i8) -> Self {
Self([value as i8; Self::LANES])
}

Expand All @@ -60,6 +61,7 @@ impl Simd for Simd128i {
}

impl Simd for Simd128u {
type Element = u8;
const LANES: usize = 16;
type Mask = Mask128;

Expand Down

0 comments on commit 0ee60ad

Please sign in to comment.