1
- use crate :: LanesAtMost64 ;
1
+ use crate :: LanesAtMost32 ;
2
2
3
3
/// A mask where each lane is represented by a single bit.
4
4
#[ derive( Copy , Clone , Debug ) ]
5
5
#[ repr( transparent) ]
6
6
pub struct BitMask < const LANES : usize > ( u64 )
7
7
where
8
- BitMask < LANES > : LanesAtMost64 ;
8
+ BitMask < LANES > : LanesAtMost32 ;
9
9
10
10
impl < const LANES : usize > BitMask < LANES >
11
11
where
12
- Self : LanesAtMost64 ,
12
+ Self : LanesAtMost32 ,
13
13
{
14
14
/// Construct a mask by setting all lanes to the given value.
15
15
pub fn splat ( value : bool ) -> Self {
43
43
44
44
impl < const LANES : usize > core:: ops:: BitAnd for BitMask < LANES >
45
45
where
46
- Self : LanesAtMost64 ,
46
+ Self : LanesAtMost32 ,
47
47
{
48
48
type Output = Self ;
49
49
#[ inline]
54
54
55
55
impl < const LANES : usize > core:: ops:: BitAnd < bool > for BitMask < LANES >
56
56
where
57
- Self : LanesAtMost64 ,
57
+ Self : LanesAtMost32 ,
58
58
{
59
59
type Output = Self ;
60
60
#[ inline]
65
65
66
66
impl < const LANES : usize > core:: ops:: BitAnd < BitMask < LANES > > for bool
67
67
where
68
- BitMask < LANES > : LanesAtMost64 ,
68
+ BitMask < LANES > : LanesAtMost32 ,
69
69
{
70
70
type Output = BitMask < LANES > ;
71
71
#[ inline]
76
76
77
77
impl < const LANES : usize > core:: ops:: BitOr for BitMask < LANES >
78
78
where
79
- Self : LanesAtMost64 ,
79
+ Self : LanesAtMost32 ,
80
80
{
81
81
type Output = Self ;
82
82
#[ inline]
87
87
88
88
impl < const LANES : usize > core:: ops:: BitOr < bool > for BitMask < LANES >
89
89
where
90
- Self : LanesAtMost64 ,
90
+ Self : LanesAtMost32 ,
91
91
{
92
92
type Output = Self ;
93
93
#[ inline]
98
98
99
99
impl < const LANES : usize > core:: ops:: BitOr < BitMask < LANES > > for bool
100
100
where
101
- BitMask < LANES > : LanesAtMost64 ,
101
+ BitMask < LANES > : LanesAtMost32 ,
102
102
{
103
103
type Output = BitMask < LANES > ;
104
104
#[ inline]
@@ -109,7 +109,7 @@ where
109
109
110
110
impl < const LANES : usize > core:: ops:: BitXor for BitMask < LANES >
111
111
where
112
- Self : LanesAtMost64 ,
112
+ Self : LanesAtMost32 ,
113
113
{
114
114
type Output = Self ;
115
115
#[ inline]
@@ -120,7 +120,7 @@ where
120
120
121
121
impl < const LANES : usize > core:: ops:: BitXor < bool > for BitMask < LANES >
122
122
where
123
- Self : LanesAtMost64 ,
123
+ Self : LanesAtMost32 ,
124
124
{
125
125
type Output = Self ;
126
126
#[ inline]
@@ -131,7 +131,7 @@ where
131
131
132
132
impl < const LANES : usize > core:: ops:: BitXor < BitMask < LANES > > for bool
133
133
where
134
- BitMask < LANES > : LanesAtMost64 ,
134
+ BitMask < LANES > : LanesAtMost32 ,
135
135
{
136
136
type Output = BitMask < LANES > ;
137
137
#[ inline]
@@ -142,7 +142,7 @@ where
142
142
143
143
impl < const LANES : usize > core:: ops:: Not for BitMask < LANES >
144
144
where
145
- Self : LanesAtMost64 ,
145
+ Self : LanesAtMost32 ,
146
146
{
147
147
type Output = BitMask < LANES > ;
148
148
#[ inline]
@@ -153,7 +153,7 @@ where
153
153
154
154
impl < const LANES : usize > core:: ops:: BitAndAssign for BitMask < LANES >
155
155
where
156
- Self : LanesAtMost64 ,
156
+ Self : LanesAtMost32 ,
157
157
{
158
158
#[ inline]
159
159
fn bitand_assign ( & mut self , rhs : Self ) {
@@ -163,7 +163,7 @@ where
163
163
164
164
impl < const LANES : usize > core:: ops:: BitAndAssign < bool > for BitMask < LANES >
165
165
where
166
- Self : LanesAtMost64 ,
166
+ Self : LanesAtMost32 ,
167
167
{
168
168
#[ inline]
169
169
fn bitand_assign ( & mut self , rhs : bool ) {
@@ -173,7 +173,7 @@ where
173
173
174
174
impl < const LANES : usize > core:: ops:: BitOrAssign for BitMask < LANES >
175
175
where
176
- Self : LanesAtMost64 ,
176
+ Self : LanesAtMost32 ,
177
177
{
178
178
#[ inline]
179
179
fn bitor_assign ( & mut self , rhs : Self ) {
@@ -183,7 +183,7 @@ where
183
183
184
184
impl < const LANES : usize > core:: ops:: BitOrAssign < bool > for BitMask < LANES >
185
185
where
186
- Self : LanesAtMost64 ,
186
+ Self : LanesAtMost32 ,
187
187
{
188
188
#[ inline]
189
189
fn bitor_assign ( & mut self , rhs : bool ) {
@@ -193,7 +193,7 @@ where
193
193
194
194
impl < const LANES : usize > core:: ops:: BitXorAssign for BitMask < LANES >
195
195
where
196
- Self : LanesAtMost64 ,
196
+ Self : LanesAtMost32 ,
197
197
{
198
198
#[ inline]
199
199
fn bitxor_assign ( & mut self , rhs : Self ) {
@@ -203,7 +203,7 @@ where
203
203
204
204
impl < const LANES : usize > core:: ops:: BitXorAssign < bool > for BitMask < LANES >
205
205
where
206
- Self : LanesAtMost64 ,
206
+ Self : LanesAtMost32 ,
207
207
{
208
208
#[ inline]
209
209
fn bitxor_assign ( & mut self , rhs : bool ) {
0 commit comments