From cd656c434b55c59744d7c181cd8f44d1dabd0e8d Mon Sep 17 00:00:00 2001 From: "Alexandre A. Bizri" Date: Wed, 4 Feb 2026 16:51:19 +0100 Subject: [PATCH] fix: nightly portable_simd changes - `core::simd::Mask::from_int` -> `::from_simd` - `core::simd::Mask::to_int` -> `::to_simd` - `core::simd::Mask::select` now needs `::core::simd::Select` trait in scope --- src/simd/portable_simd_impl.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/simd/portable_simd_impl.rs b/src/simd/portable_simd_impl.rs index c6c26fb..68ad1ac 100644 --- a/src/simd/portable_simd_impl.rs +++ b/src/simd/portable_simd_impl.rs @@ -21,7 +21,7 @@ use std::{ simd::{ self as portable_simd, cmp::SimdOrd, cmp::SimdPartialEq, cmp::SimdPartialOrd as PortableSimdPartialOrd, num::SimdFloat, num::SimdInt, num::SimdUint, - StdFloat, + Select, StdFloat, }, }; @@ -109,8 +109,8 @@ macro_rules! impl_bool_simd ( #[inline(always)] fn select(self, cond: Self::SimdBool, other: Self) -> Self { - let x = cond.0.select(self.0.to_int(), other.0.to_int()); - Self(<$t>::from_int(x)) + let x = cond.0.select(self.0.to_simd(), other.0.to_simd()); + Self(<$t>::from_simd(x)) } } @@ -163,17 +163,17 @@ macro_rules! impl_bool_simd ( #[inline(always)] fn and(self) -> bool { - self.0.to_int().reduce_and() != 0 + self.0.to_simd().reduce_and() != 0 } #[inline(always)] fn or(self) -> bool { - self.0.to_int().reduce_or() != 0 + self.0.to_simd().reduce_or() != 0 } #[inline(always)] fn xor(self) -> bool { - self.0.to_int().reduce_xor() != 0 + self.0.to_simd().reduce_xor() != 0 } #[inline(always)]