Lines Matching +full:mach +full:- +full:o
15 fn from(d: [u32; 4]) -> Self { in from()
21 fn from(d: vec128_storage) -> Self { in from()
27 fn from(q: [u64; 2]) -> Self { in from()
33 fn from(q: vec128_storage) -> Self { in from()
39 fn default() -> Self { in default()
46 fn eq(&self, rhs: &Self) -> bool { in eq()
56 pub fn new128(v128: [vec128_storage; 2]) -> Self { in new128()
60 pub fn split128(self) -> [vec128_storage; 2] { in split128()
66 fn from(q: vec256_storage) -> Self { in from()
74 fn from([a, b, c, d]: [u64; 4]) -> Self { in from()
86 pub fn new128(v128: [vec128_storage; 4]) -> Self { in new128()
90 pub fn split128(self) -> [vec128_storage; 4] { in split128()
96 fn dmap<T, F>(t: T, f: F) -> T in dmap()
99 F: Fn(u32) -> u32, in dmap()
109 fn dmap2<T, F>(a: T, b: T, f: F) -> T in dmap2()
112 F: Fn(u32, u32) -> u32, in dmap2()
130 fn qmap<T, F>(t: T, f: F) -> T in qmap()
133 F: Fn(u64) -> u64, in qmap()
144 fn qmap2<T, F>(a: T, b: T, f: F) -> T in qmap2()
147 F: Fn(u64, u64) -> u64, in qmap2()
160 fn o_of_q(q: [u64; 2]) -> u128 { in o_of_q()
165 fn q_of_o(o: u128) -> [u64; 2] { in q_of_o()
166 [o as u64, (o >> 64) as u64]
170 fn omap<T, F>(a: T, f: F) -> T in omap()
173 F: Fn(u128) -> u128, in omap()
177 let o = vec128_storage { q: q_of_o(f(ao)) }; in omap() localVariable
178 unsafe { T::unpack(o) } in omap()
182 fn omap2<T, F>(a: T, b: T, f: F) -> T in omap2()
185 F: Fn(u128, u128) -> u128, in omap2()
191 let o = vec128_storage { in omap2() localVariable
194 unsafe { T::unpack(o) } in omap2()
213 fn not(self) -> Self::Output {
220 fn bitand(self, rhs: Self) -> Self::Output {
227 fn bitor(self, rhs: Self) -> Self::Output {
234 fn bitxor(self, rhs: Self) -> Self::Output {
241 fn andnot(self, rhs: Self) -> Self::Output {
266 fn swap1(self) -> Self {
272 fn swap2(self) -> Self {
278 fn swap4(self) -> Self {
284 fn swap8(self) -> Self {
290 fn swap16(self) -> Self {
294 fn swap32(self) -> Self {
298 fn swap64(self) -> Self {
310 fn rotate_each_word_right7(self) -> Self { in rotate_each_word_right7()
314 fn rotate_each_word_right8(self) -> Self { in rotate_each_word_right8()
318 fn rotate_each_word_right11(self) -> Self { in rotate_each_word_right11()
322 fn rotate_each_word_right12(self) -> Self { in rotate_each_word_right12()
326 fn rotate_each_word_right16(self) -> Self { in rotate_each_word_right16()
330 fn rotate_each_word_right20(self) -> Self { in rotate_each_word_right20()
334 fn rotate_each_word_right24(self) -> Self { in rotate_each_word_right24()
338 fn rotate_each_word_right25(self) -> Self { in rotate_each_word_right25()
345 fn rotate_each_word_right7(self) -> Self { in rotate_each_word_right7()
349 fn rotate_each_word_right8(self) -> Self { in rotate_each_word_right8()
353 fn rotate_each_word_right11(self) -> Self { in rotate_each_word_right11()
357 fn rotate_each_word_right12(self) -> Self { in rotate_each_word_right12()
361 fn rotate_each_word_right16(self) -> Self { in rotate_each_word_right16()
365 fn rotate_each_word_right20(self) -> Self { in rotate_each_word_right20()
369 fn rotate_each_word_right24(self) -> Self { in rotate_each_word_right24()
373 fn rotate_each_word_right25(self) -> Self { in rotate_each_word_right25()
379 fn rotate_each_word_right32(self) -> Self { in rotate_each_word_right32()
384 // workaround for koute/cargo-web#52 (u128::rotate_* broken with cargo web)
386 fn rotate_u128_right(x: u128, i: u32) -> u128 { in rotate_u128_right()
387 (x >> i) | (x << (128 - i)) in rotate_u128_right()
397 fn rotate_each_word_right7(self) -> Self { in rotate_each_word_right7()
401 fn rotate_each_word_right8(self) -> Self { in rotate_each_word_right8()
405 fn rotate_each_word_right11(self) -> Self { in rotate_each_word_right11()
409 fn rotate_each_word_right12(self) -> Self { in rotate_each_word_right12()
413 fn rotate_each_word_right16(self) -> Self { in rotate_each_word_right16()
417 fn rotate_each_word_right20(self) -> Self { in rotate_each_word_right20()
421 fn rotate_each_word_right24(self) -> Self { in rotate_each_word_right24()
425 fn rotate_each_word_right25(self) -> Self { in rotate_each_word_right25()
431 fn rotate_each_word_right32(self) -> Self { in rotate_each_word_right32()
450 unsafe fn instance() -> Self { in instance()
464 fn from(d: u32x4_generic) -> Self { in from()
470 fn from(q: u64x2_generic) -> Self { in from()
476 fn from(o: u128x1_generic) -> Self { in from()
477 Self { q: q_of_o(o.0[0]) } in from()
483 unsafe fn unpack(s: vec128_storage) -> Self { in unpack()
489 unsafe fn unpack(s: vec128_storage) -> Self { in unpack()
495 unsafe fn unpack(s: vec128_storage) -> Self { in unpack()
507 fn add(self, rhs: Self) -> Self::Output { in add()
514 fn add(self, rhs: Self) -> Self::Output { in add()
521 fn add(self, rhs: Self) -> Self::Output { in add()
545 fn bswap(self) -> Self { in bswap()
551 fn bswap(self) -> Self { in bswap()
557 fn bswap(self) -> Self { in bswap()
563 unsafe fn unsafe_read_le(input: &[u8]) -> Self { in unsafe_read_le()
569 unsafe fn unsafe_read_be(input: &[u8]) -> Self { in unsafe_read_be()
589 unsafe fn unsafe_read_le(input: &[u8]) -> Self { in unsafe_read_le()
595 unsafe fn unsafe_read_be(input: &[u8]) -> Self { in unsafe_read_be()
627 fn to_scalars(self) -> [u32; 16] { in to_scalars()
644 fn to_lanes(self) -> [u32; 4] { in to_lanes()
648 fn from_lanes(xs: [u32; 4]) -> Self { in from_lanes()
654 fn to_lanes(self) -> [u64; 2] { in to_lanes()
658 fn from_lanes(xs: [u64; 2]) -> Self { in from_lanes()
664 fn to_lanes(self) -> [u64; 4] { in to_lanes()
669 fn from_lanes(xs: [u64; 4]) -> Self { in from_lanes()
679 fn to_lanes(self) -> [u128; 1] { in to_lanes()
683 fn from_lanes(xs: [u128; 1]) -> Self { in from_lanes()
689 fn extract(self, i: u32) -> u32 { in extract()
693 fn insert(mut self, v: u32, i: u32) -> Self { in insert()
700 fn extract(self, i: u32) -> u64 { in extract()
705 fn insert(self, v: u64, i: u32) -> Self { in insert()
712 fn extract(self, i: u32) -> u64 { in extract()
716 fn insert(mut self, v: u64, i: u32) -> Self { in insert()
724 fn shuffle2301(self) -> Self { in shuffle2301()
728 fn shuffle1230(self) -> Self { in shuffle1230()
733 fn shuffle3012(self) -> Self { in shuffle3012()
740 fn shuffle_lane_words2301(self) -> Self { in shuffle_lane_words2301()
744 fn shuffle_lane_words1230(self) -> Self { in shuffle_lane_words1230()
748 fn shuffle_lane_words3012(self) -> Self { in shuffle_lane_words3012()
755 fn shuffle2301(self) -> Self { in shuffle2301()
759 fn shuffle1230(self) -> Self { in shuffle1230()
763 fn shuffle3012(self) -> Self { in shuffle3012()
781 …($mach:ident, $MTy:ident, { $([$pub:tt$(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),*…
783 $($pub$(($krate))*)* fn $name($($arg: $argty),*) -> $ret {
784 let $mach = unsafe { $crate::generic::GenericMachine::instance() };
786 fn fn_impl<$MTy: $crate::Machine>($mach: $MTy, $($arg: $argty),*) -> $ret $body
787 fn_impl($mach, $($arg),*)
790 …($mach:ident, $MTy:ident, { $([$pub:tt $(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),…
791 dispatch!($mach, $MTy, {
792 $([$pub $(($krate))*])* fn $name($($arg: $argty),*) -> () $body
798 …($mach:ident, $MTy:ident, { $([$pub:tt$(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),*…
800 $($pub$(($krate))*)* fn $name($($arg: $argty),*) -> $ret {
801 let $mach = unsafe { $crate::generic::GenericMachine::instance() };
803 fn fn_impl<$MTy: $crate::Machine>($mach: $MTy, $($arg: $argty),*) -> $ret $body
804 fn_impl($mach, $($arg),*)
807 …($mach:ident, $MTy:ident, { $([$pub:tt $(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),…
808 dispatch!($mach, $MTy, {
809 $([$pub $(($krate))*])* fn $name($($arg: $argty),*) -> () $body
815 …($mach:ident, $MTy:ident, { $([$pub:tt$(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),*…
817 $($pub$(($krate))*)* fn $name($($arg: $argty),*) -> $ret {
818 let $mach = unsafe { $crate::generic::GenericMachine::instance() };
820 fn fn_impl<$MTy: $crate::Machine>($mach: $MTy, $($arg: $argty),*) -> $ret $body
821 fn_impl($mach, $($arg),*)
824 …($mach:ident, $MTy:ident, { $([$pub:tt $(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),…
825 dispatch!($mach, $MTy, {
826 $([$pub $(($krate))*])* fn $name($($arg: $argty),*) -> () $body
832 …($mach:ident, $MTy:ident, { $([$pub:tt$(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),*…
834 $($pub$(($krate))*)* fn $name($($arg: $argty),*) -> $ret {
835 let $mach = unsafe { $crate::generic::GenericMachine::instance() };
837 fn fn_impl<$MTy: $crate::Machine>($mach: $MTy, $($arg: $argty),*) -> $ret $body
838 fn_impl($mach, $($arg),*)
841 …($mach:ident, $MTy:ident, { $([$pub:tt $(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),…
842 dispatch!($mach, $MTy, {
843 $([$pub $(($krate))*])* fn $name($($arg: $argty),*) -> () $body