1- use crate :: LanesAtMost64 ;
1+ use crate :: LanesAtMost32 ;
22
33/// A mask where each lane is represented by a single bit.
44#[ derive( Copy , Clone , Debug ) ]
55#[ repr( transparent) ]
66pub struct BitMask < const LANES : usize > ( u64 )
77where
8- BitMask < LANES > : LanesAtMost64 ;
8+ BitMask < LANES > : LanesAtMost32 ;
99
1010impl < const LANES : usize > BitMask < LANES >
1111where
12- Self : LanesAtMost64 ,
12+ Self : LanesAtMost32 ,
1313{
1414 /// Construct a mask by setting all lanes to the given value.
1515 pub fn splat ( value : bool ) -> Self {
4343
4444impl < const LANES : usize > core:: ops:: BitAnd for BitMask < LANES >
4545where
46- Self : LanesAtMost64 ,
46+ Self : LanesAtMost32 ,
4747{
4848 type Output = Self ;
4949 #[ inline]
5454
5555impl < const LANES : usize > core:: ops:: BitAnd < bool > for BitMask < LANES >
5656where
57- Self : LanesAtMost64 ,
57+ Self : LanesAtMost32 ,
5858{
5959 type Output = Self ;
6060 #[ inline]
6565
6666impl < const LANES : usize > core:: ops:: BitAnd < BitMask < LANES > > for bool
6767where
68- BitMask < LANES > : LanesAtMost64 ,
68+ BitMask < LANES > : LanesAtMost32 ,
6969{
7070 type Output = BitMask < LANES > ;
7171 #[ inline]
7676
7777impl < const LANES : usize > core:: ops:: BitOr for BitMask < LANES >
7878where
79- Self : LanesAtMost64 ,
79+ Self : LanesAtMost32 ,
8080{
8181 type Output = Self ;
8282 #[ inline]
8787
8888impl < const LANES : usize > core:: ops:: BitOr < bool > for BitMask < LANES >
8989where
90- Self : LanesAtMost64 ,
90+ Self : LanesAtMost32 ,
9191{
9292 type Output = Self ;
9393 #[ inline]
9898
9999impl < const LANES : usize > core:: ops:: BitOr < BitMask < LANES > > for bool
100100where
101- BitMask < LANES > : LanesAtMost64 ,
101+ BitMask < LANES > : LanesAtMost32 ,
102102{
103103 type Output = BitMask < LANES > ;
104104 #[ inline]
@@ -109,7 +109,7 @@ where
109109
110110impl < const LANES : usize > core:: ops:: BitXor for BitMask < LANES >
111111where
112- Self : LanesAtMost64 ,
112+ Self : LanesAtMost32 ,
113113{
114114 type Output = Self ;
115115 #[ inline]
@@ -120,7 +120,7 @@ where
120120
121121impl < const LANES : usize > core:: ops:: BitXor < bool > for BitMask < LANES >
122122where
123- Self : LanesAtMost64 ,
123+ Self : LanesAtMost32 ,
124124{
125125 type Output = Self ;
126126 #[ inline]
@@ -131,7 +131,7 @@ where
131131
132132impl < const LANES : usize > core:: ops:: BitXor < BitMask < LANES > > for bool
133133where
134- BitMask < LANES > : LanesAtMost64 ,
134+ BitMask < LANES > : LanesAtMost32 ,
135135{
136136 type Output = BitMask < LANES > ;
137137 #[ inline]
@@ -142,7 +142,7 @@ where
142142
143143impl < const LANES : usize > core:: ops:: Not for BitMask < LANES >
144144where
145- Self : LanesAtMost64 ,
145+ Self : LanesAtMost32 ,
146146{
147147 type Output = BitMask < LANES > ;
148148 #[ inline]
@@ -153,7 +153,7 @@ where
153153
154154impl < const LANES : usize > core:: ops:: BitAndAssign for BitMask < LANES >
155155where
156- Self : LanesAtMost64 ,
156+ Self : LanesAtMost32 ,
157157{
158158 #[ inline]
159159 fn bitand_assign ( & mut self , rhs : Self ) {
@@ -163,7 +163,7 @@ where
163163
164164impl < const LANES : usize > core:: ops:: BitAndAssign < bool > for BitMask < LANES >
165165where
166- Self : LanesAtMost64 ,
166+ Self : LanesAtMost32 ,
167167{
168168 #[ inline]
169169 fn bitand_assign ( & mut self , rhs : bool ) {
@@ -173,7 +173,7 @@ where
173173
174174impl < const LANES : usize > core:: ops:: BitOrAssign for BitMask < LANES >
175175where
176- Self : LanesAtMost64 ,
176+ Self : LanesAtMost32 ,
177177{
178178 #[ inline]
179179 fn bitor_assign ( & mut self , rhs : Self ) {
@@ -183,7 +183,7 @@ where
183183
184184impl < const LANES : usize > core:: ops:: BitOrAssign < bool > for BitMask < LANES >
185185where
186- Self : LanesAtMost64 ,
186+ Self : LanesAtMost32 ,
187187{
188188 #[ inline]
189189 fn bitor_assign ( & mut self , rhs : bool ) {
@@ -193,7 +193,7 @@ where
193193
194194impl < const LANES : usize > core:: ops:: BitXorAssign for BitMask < LANES >
195195where
196- Self : LanesAtMost64 ,
196+ Self : LanesAtMost32 ,
197197{
198198 #[ inline]
199199 fn bitxor_assign ( & mut self , rhs : Self ) {
@@ -203,7 +203,7 @@ where
203203
204204impl < const LANES : usize > core:: ops:: BitXorAssign < bool > for BitMask < LANES >
205205where
206- Self : LanesAtMost64 ,
206+ Self : LanesAtMost32 ,
207207{
208208 #[ inline]
209209 fn bitxor_assign ( & mut self , rhs : bool ) {
0 commit comments