| 1 |
Index: palette/Cargo.toml |
| 2 |
=================================================================== |
| 3 |
--- palette.orig/Cargo.toml |
| 4 |
+++ palette/Cargo.toml |
| 5 |
@@ -91,7 +91,7 @@ features = ["serde_derive"] |
| 6 |
optional = true |
| 7 |
|
| 8 |
[dependencies.wide] |
| 9 |
-version = "0.7.3" |
| 10 |
+version = "1" |
| 11 |
optional = true |
| 12 |
default-features = false |
| 13 |
|
| 14 |
Index: palette/src/angle/wide.rs |
| 15 |
=================================================================== |
| 16 |
--- palette.orig/src/angle/wide.rs |
| 17 |
+++ palette/src/angle/wide.rs |
| 18 |
@@ -34,7 +34,7 @@ macro_rules! impl_angle_wide_float { |
| 19 |
impl AngleEq for $ty { |
| 20 |
#[inline] |
| 21 |
fn angle_eq(&self, other: &Self) -> Self { |
| 22 |
- self.normalize_unsigned_angle().cmp_eq(other.normalize_unsigned_angle()) |
| 23 |
+ self.normalize_unsigned_angle().simd_eq(other.normalize_unsigned_angle()) |
| 24 |
} |
| 25 |
} |
| 26 |
|
| 27 |
Index: palette/src/num/wide.rs |
| 28 |
=================================================================== |
| 29 |
--- palette.orig/src/num/wide.rs |
| 30 |
+++ palette/src/num/wide.rs |
| 31 |
@@ -77,7 +77,7 @@ macro_rules! impl_wide_float { |
| 32 |
impl IsValidDivisor for $ty { |
| 33 |
#[inline] |
| 34 |
fn is_valid_divisor(&self) -> Self { |
| 35 |
- !self.cmp_eq($ty::ZERO) |
| 36 |
+ !self.simd_eq($ty::ZERO) |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
@@ -256,32 +256,32 @@ macro_rules! impl_wide_float { |
| 41 |
impl PartialCmp for $ty { |
| 42 |
#[inline] |
| 43 |
fn lt(&self, other: &Self) -> Self::Mask { |
| 44 |
- self.cmp_lt(*other) |
| 45 |
+ self.simd_lt(*other) |
| 46 |
} |
| 47 |
|
| 48 |
#[inline] |
| 49 |
fn lt_eq(&self, other: &Self) -> Self::Mask { |
| 50 |
- self.cmp_le(*other) |
| 51 |
+ self.simd_le(*other) |
| 52 |
} |
| 53 |
|
| 54 |
#[inline] |
| 55 |
fn eq(&self, other: &Self) -> Self::Mask { |
| 56 |
- self.cmp_eq(*other) |
| 57 |
+ self.simd_eq(*other) |
| 58 |
} |
| 59 |
|
| 60 |
#[inline] |
| 61 |
fn neq(&self, other: &Self) -> Self::Mask { |
| 62 |
- self.cmp_ne(*other) |
| 63 |
+ self.simd_ne(*other) |
| 64 |
} |
| 65 |
|
| 66 |
#[inline] |
| 67 |
fn gt_eq(&self, other: &Self) -> Self::Mask { |
| 68 |
- self.cmp_ge(*other) |
| 69 |
+ self.simd_ge(*other) |
| 70 |
} |
| 71 |
|
| 72 |
#[inline] |
| 73 |
fn gt(&self, other: &Self) -> Self::Mask { |
| 74 |
- self.cmp_gt(*other) |
| 75 |
+ self.simd_gt(*other) |
| 76 |
} |
| 77 |
} |
| 78 |
|