From 7b21e890b2208a6ff99cc2b3c9937051e17a8b23 Mon Sep 17 00:00:00 2001 From: sarah <> Date: Wed, 14 Feb 2024 16:15:37 +0100 Subject: [PATCH] impl NoUninit for masks --- pulp/Cargo.toml | 2 +- pulp/src/lib.rs | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pulp/Cargo.toml b/pulp/Cargo.toml index 6635504..da2b479 100644 --- a/pulp/Cargo.toml +++ b/pulp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pulp" -version = "0.18.7" +version = "0.18.8" edition = "2021" authors = ["sarah <>"] description = "Safe generic simd" diff --git a/pulp/src/lib.rs b/pulp/src/lib.rs index 8cee8bf..debadae 100644 --- a/pulp/src/lib.rs +++ b/pulp/src/lib.rs @@ -4774,6 +4774,11 @@ unsafe impl Zeroable for m8 {} unsafe impl Zeroable for m16 {} unsafe impl Zeroable for m32 {} unsafe impl Zeroable for m64 {} +unsafe impl NoUninit for m8 {} +unsafe impl NoUninit for m16 {} +unsafe impl NoUninit for m32 {} +unsafe impl NoUninit for m64 {} + unsafe impl Zeroable for b8 {} unsafe impl Pod for b8 {} unsafe impl Zeroable for b16 {} @@ -4797,6 +4802,8 @@ unsafe impl Pod for u8x32 {} unsafe impl Pod for u8x64 {} unsafe impl Zeroable for m8x16 {} unsafe impl Zeroable for m8x32 {} +unsafe impl NoUninit for m8x16 {} +unsafe impl NoUninit for m8x32 {} unsafe impl Zeroable for i16x8 {} unsafe impl Zeroable for i16x16 {} @@ -4812,6 +4819,8 @@ unsafe impl Pod for u16x16 {} unsafe impl Pod for u16x32 {} unsafe impl Zeroable for m16x8 {} unsafe impl Zeroable for m16x16 {} +unsafe impl NoUninit for m16x8 {} +unsafe impl NoUninit for m16x16 {} unsafe impl Zeroable for f32x4 {} unsafe impl Zeroable for f32x8 {} @@ -4833,6 +4842,8 @@ unsafe impl Pod for u32x8 {} unsafe impl Pod for u32x16 {} unsafe impl Zeroable for m32x4 {} unsafe impl Zeroable for m32x8 {} +unsafe impl NoUninit for m32x4 {} +unsafe impl NoUninit for m32x8 {} unsafe impl Zeroable for f64x2 {} unsafe impl Zeroable for f64x4 {} @@ -4854,6 +4865,8 @@ unsafe impl Pod for u64x4 {} unsafe impl Pod for u64x8 {} unsafe impl Zeroable for m64x2 {} unsafe impl Zeroable for m64x4 {} +unsafe impl NoUninit for m64x2 {} +unsafe impl NoUninit for m64x4 {} #[cfg(test)] mod tests {