1- // Copyright © 2021-2025 Rouven Spreckels <rs@qu1x.dev>
1+ // Copyright © 2021-2026 Rouven Spreckels <rs@qu1x.dev>
22//
33// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
44// the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
@@ -11,7 +11,7 @@ use core::{
1111 ops:: { Add , AddAssign , Div , DivAssign , Mul , MulAssign , Rem , RemAssign , Sub , SubAssign } ,
1212 ops:: { BitAnd , BitAndAssign , BitOr , BitOrAssign , BitXor , BitXorAssign , Not } ,
1313 ops:: { Shl , ShlAssign , Shr , ShrAssign } ,
14- simd:: { LaneCount , SimdElement , SupportedLaneCount } ,
14+ simd:: SimdElement ,
1515} ;
1616
1717mod u32;
5252 Self : SimdElement ,
5353{
5454 /// Associated vector.
55- type Simd < const N : usize > : SimdBits < Self , N >
56- where
57- LaneCount < N > : SupportedLaneCount ;
55+ type Simd < const N : usize > : SimdBits < Self , N > ;
5856
5957 /// The smallest value that can be represented by this integer type.
6058 const MIN : Self ;
8381 /// Constructs a SIMD vector by setting all lanes to the given value.
8482 #[ must_use]
8583 #[ inline]
86- fn splat < const N : usize > ( self ) -> Self :: Simd < N >
87- where
88- LaneCount < N > : SupportedLaneCount ,
89- {
84+ fn splat < const N : usize > ( self ) -> Self :: Simd < N > {
9085 Self :: Simd :: splat ( self )
9186 }
9287
@@ -108,10 +103,7 @@ where
108103 /// Panic if the size of the SIMD vector is different from `N` times that of the scalar.
109104 #[ must_use]
110105 #[ inline]
111- fn as_simd < const N : usize > ( slice : & [ Self ] ) -> ( & [ Self ] , & [ Self :: Simd < N > ] , & [ Self ] )
112- where
113- LaneCount < N > : SupportedLaneCount ,
114- {
106+ fn as_simd < const N : usize > ( slice : & [ Self ] ) -> ( & [ Self ] , & [ Self :: Simd < N > ] , & [ Self ] ) {
115107 Self :: Simd :: as_simd ( slice)
116108 }
117109
@@ -138,10 +130,7 @@ where
138130 #[ inline]
139131 fn as_simd_mut < const N : usize > (
140132 slice : & mut [ Self ] ,
141- ) -> ( & mut [ Self ] , & mut [ Self :: Simd < N > ] , & mut [ Self ] )
142- where
143- LaneCount < N > : SupportedLaneCount ,
144- {
133+ ) -> ( & mut [ Self ] , & mut [ Self :: Simd < N > ] , & mut [ Self ] ) {
145134 Self :: Simd :: as_simd_mut ( slice)
146135 }
147136}
0 commit comments