Skip to content

Commit

Permalink
bump patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah committed Nov 13, 2023
1 parent 0c14787 commit 1018621
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pulp"
version = "0.18.3"
version = "0.18.4"
edition = "2021"
authors = ["sarah <>"]
description = "Safe generic simd"
Expand Down
27 changes: 27 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2150,6 +2150,33 @@ impl<T, S: Simd> Suffix<'_, T, S, bool> {
}
}

impl<'a, T, S: Simd, Mask: Copy> IntoConst for SuffixMut<'a, T, S, Mask> {
type Target = Suffix<'a, T, S, Mask>;

#[inline(always)]
fn into_const(self) -> Self::Target {
Suffix {
simd: self.simd,
mask: self.mask,
base: self.base,
__marker: PhantomData,
}
}
}
impl<'a, T, S: Simd, Mask: Copy> IntoConst for PrefixMut<'a, T, S, Mask> {
type Target = Prefix<'a, T, S, Mask>;

#[inline(always)]
fn into_const(self) -> Self::Target {
Prefix {
simd: self.simd,
mask: self.mask,
base: self.base,
__marker: PhantomData,
}
}
}

impl<'short, T, S: Simd, Mask: Copy> ReborrowMut<'short> for SuffixMut<'_, T, S, Mask> {
type Target = SuffixMut<'short, T, S, Mask>;

Expand Down

0 comments on commit 1018621

Please sign in to comment.