Lines Matching refs:W
10 pub struct x2<W, G>(pub [W; 2], PhantomData<G>);
11 impl<W, G> x2<W, G> {
13 pub fn new(xs: [W; 2]) -> Self { in new()
19 impl<W: $trait + Copy, G> $trait for x2<W, G> {
20 type Output = x2<W::Output, G>;
30 impl<W: $trait + Copy, G> $trait for x2<W, G> {
47 impl<W, G> RotateEachWord32 for x2<W, G>
49 W: Copy + RotateEachWord32,
60 impl<W, G> RotateEachWord64 for x2<W, G>
62 W: Copy + RotateEachWord64,
66 impl<W, G> RotateEachWord128 for x2<W, G> where W: RotateEachWord128 {}
67 impl<W, G> BitOps0 for x2<W, G>
69 W: BitOps0,
73 impl<W, G> BitOps32 for x2<W, G>
75 W: BitOps32 + BitOps0,
79 impl<W, G> BitOps64 for x2<W, G>
81 W: BitOps64 + BitOps0,
85 impl<W, G> BitOps128 for x2<W, G>
87 W: BitOps128 + BitOps0,
98 impl<W, G> ArithOps for x2<W, G>
100 W: ArithOps,
106 impl<W: Not + Copy, G> Not for x2<W, G> {
107 type Output = x2<W::Output, G>;
113 impl<W, G> UnsafeFrom<[W; 2]> for x2<W, G> {
115 unsafe fn unsafe_from(xs: [W; 2]) -> Self { in unsafe_from()
119 impl<W: Copy, G> Vec2<W> for x2<W, G> {
121 fn extract(self, i: u32) -> W { in extract() argument
125 fn insert(mut self, w: W, i: u32) -> Self { in insert() argument
130 impl<W: Copy + Store<vec128_storage>, G> Store<vec256_storage> for x2<W, G> {
134 x2::new([W::unpack(p[0]), W::unpack(p[1])]) in unpack()
137 impl<W, G> From<x2<W, G>> for vec256_storage
139 W: Copy,
140 vec128_storage: From<W>,
143 fn from(x: x2<W, G>) -> Self { in from() argument
147 impl<W, G> Swap64 for x2<W, G>
149 W: Swap64 + Copy,
159 impl<W: Copy, G> MultiLane<[W; 2]> for x2<W, G> {
161 fn to_lanes(self) -> [W; 2] { in to_lanes()
165 fn from_lanes(lanes: [W; 2]) -> Self { in from_lanes()
169 impl<W: BSwap + Copy, G> BSwap for x2<W, G> {
175 impl<W: StoreBytes + BSwap + Copy, G> StoreBytes for x2<W, G> {
179 x2::new([W::unsafe_read_le(input.0), W::unsafe_read_le(input.1)]) in unsafe_read_le()
201 pub struct x4<W>(pub [W; 4]);
202 impl<W> x4<W> {
204 pub fn new(xs: [W; 4]) -> Self { in new()
210 impl<W: $trait + Copy> $trait for x4<W> {
211 type Output = x4<W::Output>;
226 impl<W: $trait + Copy> $trait for x4<W> {
250 impl<W> RotateEachWord32 for x4<W>
252 W: Copy + RotateEachWord32,
263 impl<W> RotateEachWord64 for x4<W>
265 W: Copy + RotateEachWord64,
269 impl<W> RotateEachWord128 for x4<W> where W: RotateEachWord128 {}
270 impl<W> BitOps0 for x4<W> where W: BitOps0 {}
271 impl<W> BitOps32 for x4<W> where W: BitOps32 + BitOps0 {}
272 impl<W> BitOps64 for x4<W> where W: BitOps64 + BitOps0 {}
273 impl<W> BitOps128 for x4<W> where W: BitOps128 + BitOps0 {}
281 impl<W> ArithOps for x4<W> where W: ArithOps {}
284 impl<W: Not + Copy> Not for x4<W> {
285 type Output = x4<W::Output>;
296 impl<W> UnsafeFrom<[W; 4]> for x4<W> {
298 unsafe fn unsafe_from(xs: [W; 4]) -> Self { in unsafe_from()
302 impl<W: Copy> Vec4<W> for x4<W> {
304 fn extract(self, i: u32) -> W { in extract() argument
308 fn insert(mut self, w: W, i: u32) -> Self { in insert() argument
313 impl<W: Copy + Store<vec128_storage>> Store<vec512_storage> for x4<W> {
318 W::unpack(p[0]), in unpack()
319 W::unpack(p[1]), in unpack()
320 W::unpack(p[2]), in unpack()
321 W::unpack(p[3]), in unpack()
325 impl<W> From<x4<W>> for vec512_storage
327 W: Copy,
328 vec128_storage: From<W>,
331 fn from(x: x4<W>) -> Self { in from()
335 impl<W> Swap64 for x4<W>
337 W: Swap64 + Copy,
347 impl<W: Copy> MultiLane<[W; 4]> for x4<W> {
349 fn to_lanes(self) -> [W; 4] { in to_lanes()
353 fn from_lanes(lanes: [W; 4]) -> Self { in from_lanes()
357 impl<W: BSwap + Copy> BSwap for x4<W> {
368 impl<W: StoreBytes + BSwap + Copy> StoreBytes for x4<W> {
372 W::unsafe_read_le(&input[0..16]), in unsafe_read_le()
373 W::unsafe_read_le(&input[16..32]), in unsafe_read_le()
374 W::unsafe_read_le(&input[32..48]), in unsafe_read_le()
375 W::unsafe_read_le(&input[48..64]), in unsafe_read_le()
397 impl<W: Copy + LaneWords4> LaneWords4 for x4<W> {