Index: palette/Cargo.toml =================================================================== --- palette.orig/Cargo.toml +++ palette/Cargo.toml @@ -91,7 +91,7 @@ features = ["serde_derive"] optional = true [dependencies.wide] -version = "0.7.3" +version = "1" optional = true default-features = false Index: palette/src/angle/wide.rs =================================================================== --- palette.orig/src/angle/wide.rs +++ palette/src/angle/wide.rs @@ -34,7 +34,7 @@ macro_rules! impl_angle_wide_float { impl AngleEq for $ty { #[inline] fn angle_eq(&self, other: &Self) -> Self { - self.normalize_unsigned_angle().cmp_eq(other.normalize_unsigned_angle()) + self.normalize_unsigned_angle().simd_eq(other.normalize_unsigned_angle()) } } Index: palette/src/num/wide.rs =================================================================== --- palette.orig/src/num/wide.rs +++ palette/src/num/wide.rs @@ -77,7 +77,7 @@ macro_rules! impl_wide_float { impl IsValidDivisor for $ty { #[inline] fn is_valid_divisor(&self) -> Self { - !self.cmp_eq($ty::ZERO) + !self.simd_eq($ty::ZERO) } } @@ -256,32 +256,32 @@ macro_rules! impl_wide_float { impl PartialCmp for $ty { #[inline] fn lt(&self, other: &Self) -> Self::Mask { - self.cmp_lt(*other) + self.simd_lt(*other) } #[inline] fn lt_eq(&self, other: &Self) -> Self::Mask { - self.cmp_le(*other) + self.simd_le(*other) } #[inline] fn eq(&self, other: &Self) -> Self::Mask { - self.cmp_eq(*other) + self.simd_eq(*other) } #[inline] fn neq(&self, other: &Self) -> Self::Mask { - self.cmp_ne(*other) + self.simd_ne(*other) } #[inline] fn gt_eq(&self, other: &Self) -> Self::Mask { - self.cmp_ge(*other) + self.simd_ge(*other) } #[inline] fn gt(&self, other: &Self) -> Self::Mask { - self.cmp_gt(*other) + self.simd_gt(*other) } }