@@ -11,110 +11,6 @@ Subject: [PATCH] Disable unsupported tests
11
11
crates/core_simd/tests/masks.rs | 3 ---
12
12
5 files changed, 20 insertions(+), 3 deletions(-)
13
13
14
- diff --git a/crates/core_simd/src/elements/int.rs b/crates/core_simd/src/elements/int.rs
15
- index 9b8c37e..ea95f08 100644
16
- --- a/crates/core_simd/src/elements/int.rs
17
- +++ b/crates/core_simd/src/elements/int.rs
18
- @@ -11,6 +11,7 @@ pub trait SimdInt: Copy + Sealed {
19
- /// Scalar type contained by this SIMD vector type.
20
- type Scalar;
21
-
22
- + /*
23
- /// Lanewise saturating add.
24
- ///
25
- /// # Examples
26
- @@ -45,6 +46,7 @@ pub trait SimdInt: Copy + Sealed {
27
- /// assert_eq!(unsat, Simd::from_array([1, MAX, MIN, 0]));
28
- /// assert_eq!(sat, Simd::from_array([MIN, MIN, MIN, 0]));
29
- fn saturating_sub(self, second: Self) -> Self;
30
- + */
31
-
32
- /// Lanewise absolute value, implemented in Rust.
33
- /// Every lane becomes its absolute value.
34
- @@ -61,6 +63,7 @@ pub trait SimdInt: Copy + Sealed {
35
- /// ```
36
- fn abs(self) -> Self;
37
-
38
- + /*
39
- /// Lanewise saturating absolute value, implemented in Rust.
40
- /// As abs(), except the MIN value becomes MAX instead of itself.
41
- ///
42
- @@ -96,6 +99,7 @@ pub trait SimdInt: Copy + Sealed {
43
- /// assert_eq!(sat, Simd::from_array([MAX, 2, -3, MIN + 1]));
44
- /// ```
45
- fn saturating_neg(self) -> Self;
46
- + */
47
-
48
- /// Returns true for each positive lane and false if it is zero or negative.
49
- fn is_positive(self) -> Self::Mask;
50
- @@ -199,6 +203,7 @@ macro_rules! impl_trait {
51
- type Mask = Mask<<$ty as SimdElement>::Mask, LANES>;
52
- type Scalar = $ty;
53
-
54
- + /*
55
- #[inline]
56
- fn saturating_add(self, second: Self) -> Self {
57
- // Safety: `self` is a vector
58
- @@ -210,6 +215,7 @@ macro_rules! impl_trait {
59
- // Safety: `self` is a vector
60
- unsafe { intrinsics::simd_saturating_sub(self, second) }
61
- }
62
- + */
63
-
64
- #[inline]
65
- fn abs(self) -> Self {
66
- @@ -218,6 +224,7 @@ macro_rules! impl_trait {
67
- (self^m) - m
68
- }
69
-
70
- + /*
71
- #[inline]
72
- fn saturating_abs(self) -> Self {
73
- // arith shift for -1 or 0 mask based on sign bit, giving 2s complement
74
- @@ -230,6 +237,7 @@ macro_rules! impl_trait {
75
- fn saturating_neg(self) -> Self {
76
- Self::splat(0).saturating_sub(self)
77
- }
78
- + */
79
-
80
- #[inline]
81
- fn is_positive(self) -> Self::Mask {
82
- diff --git a/crates/core_simd/src/elements/uint.rs b/crates/core_simd/src/elements/uint.rs
83
- index 21e7e76..0d6dee2 100644
84
- --- a/crates/core_simd/src/elements/uint.rs
85
- +++ b/crates/core_simd/src/elements/uint.rs
86
- @@ -6,6 +6,7 @@ pub trait SimdUint: Copy + Sealed {
87
- /// Scalar type contained by this SIMD vector type.
88
- type Scalar;
89
-
90
- + /*
91
- /// Lanewise saturating add.
92
- ///
93
- /// # Examples
94
- @@ -40,6 +41,7 @@ pub trait SimdUint: Copy + Sealed {
95
- /// assert_eq!(unsat, Simd::from_array([3, 2, 1, 0]));
96
- /// assert_eq!(sat, Simd::splat(0));
97
- fn saturating_sub(self, second: Self) -> Self;
98
- + */
99
-
100
- /// Returns the sum of the lanes of the vector, with wrapping addition.
101
- fn reduce_sum(self) -> Self::Scalar;
102
- @@ -78,6 +80,7 @@ macro_rules! impl_trait {
103
- {
104
- type Scalar = $ty;
105
-
106
- + /*
107
- #[inline]
108
- fn saturating_add(self, second: Self) -> Self {
109
- // Safety: `self` is a vector
110
- @@ -89,6 +92,7 @@ macro_rules! impl_trait {
111
- // Safety: `self` is a vector
112
- unsafe { intrinsics::simd_saturating_sub(self, second) }
113
- }
114
- + */
115
-
116
- #[inline]
117
- fn reduce_sum(self) -> Self::Scalar {
118
14
diff --git a/crates/core_simd/src/masks/full_masks.rs b/crates/core_simd/src/masks/full_masks.rs
119
15
index adf0fcb..e7e657e 100644
120
16
--- a/crates/core_simd/src/masks/full_masks.rs
0 commit comments