Lines Matching +full:mach +full:- +full:o
19 fn from(d: [u32; 4]) -> Self { in from()
25 fn from(d: vec128_storage) -> Self { in from()
31 fn from(q: [u64; 2]) -> Self { in from()
37 fn from(q: vec128_storage) -> Self { in from()
43 fn default() -> Self { in default()
50 fn eq(&self, rhs: &Self) -> bool { in eq()
60 pub fn new128(v128: [vec128_storage; 2]) -> Self { in new128()
64 pub fn split128(self) -> [vec128_storage; 2] { in split128()
70 fn from(q: vec256_storage) -> Self { in from()
78 fn from([a, b, c, d]: [u64; 4]) -> Self { in from()
90 pub fn new128(v128: [vec128_storage; 4]) -> Self { in new128()
94 pub fn split128(self) -> [vec128_storage; 4] { in split128()
100 fn dmap<T, F>(t: T, f: F) -> T in dmap()
103 F: Fn(u32) -> u32, in dmap()
113 fn dmap2<T, F>(a: T, b: T, f: F) -> T in dmap2()
116 F: Fn(u32, u32) -> u32, in dmap2()
134 fn qmap<T, F>(t: T, f: F) -> T in qmap()
137 F: Fn(u64) -> u64, in qmap()
148 fn qmap2<T, F>(a: T, b: T, f: F) -> T in qmap2()
151 F: Fn(u64, u64) -> u64, in qmap2()
164 fn o_of_q(q: [u64; 2]) -> u128 { in o_of_q()
169 fn q_of_o(o: u128) -> [u64; 2] { in q_of_o()
170 [o as u64, (o >> 64) as u64]
174 fn omap<T, F>(a: T, f: F) -> T in omap()
177 F: Fn(u128) -> u128, in omap()
181 let o = vec128_storage { q: q_of_o(f(ao)) }; in omap() localVariable
182 unsafe { T::unpack(o) } in omap()
186 fn omap2<T, F>(a: T, b: T, f: F) -> T in omap2()
189 F: Fn(u128, u128) -> u128, in omap2()
195 let o = vec128_storage { in omap2() localVariable
198 unsafe { T::unpack(o) } in omap2()
217 fn not(self) -> Self::Output {
224 fn bitand(self, rhs: Self) -> Self::Output {
231 fn bitor(self, rhs: Self) -> Self::Output {
238 fn bitxor(self, rhs: Self) -> Self::Output {
245 fn andnot(self, rhs: Self) -> Self::Output {
270 fn swap1(self) -> Self {
276 fn swap2(self) -> Self {
282 fn swap4(self) -> Self {
288 fn swap8(self) -> Self {
294 fn swap16(self) -> Self {
298 fn swap32(self) -> Self {
302 fn swap64(self) -> Self {
314 fn rotate_each_word_right7(self) -> Self { in rotate_each_word_right7()
318 fn rotate_each_word_right8(self) -> Self { in rotate_each_word_right8()
322 fn rotate_each_word_right11(self) -> Self { in rotate_each_word_right11()
326 fn rotate_each_word_right12(self) -> Self { in rotate_each_word_right12()
330 fn rotate_each_word_right16(self) -> Self { in rotate_each_word_right16()
334 fn rotate_each_word_right20(self) -> Self { in rotate_each_word_right20()
338 fn rotate_each_word_right24(self) -> Self { in rotate_each_word_right24()
342 fn rotate_each_word_right25(self) -> Self { in rotate_each_word_right25()
349 fn rotate_each_word_right7(self) -> Self { in rotate_each_word_right7()
353 fn rotate_each_word_right8(self) -> Self { in rotate_each_word_right8()
357 fn rotate_each_word_right11(self) -> Self { in rotate_each_word_right11()
361 fn rotate_each_word_right12(self) -> Self { in rotate_each_word_right12()
365 fn rotate_each_word_right16(self) -> Self { in rotate_each_word_right16()
369 fn rotate_each_word_right20(self) -> Self { in rotate_each_word_right20()
373 fn rotate_each_word_right24(self) -> Self { in rotate_each_word_right24()
377 fn rotate_each_word_right25(self) -> Self { in rotate_each_word_right25()
383 fn rotate_each_word_right32(self) -> Self { in rotate_each_word_right32()
388 // workaround for koute/cargo-web#52 (u128::rotate_* broken with cargo web)
390 fn rotate_u128_right(x: u128, i: u32) -> u128 { in rotate_u128_right()
391 (x >> i) | (x << (128 - i)) in rotate_u128_right()
401 fn rotate_each_word_right7(self) -> Self { in rotate_each_word_right7()
405 fn rotate_each_word_right8(self) -> Self { in rotate_each_word_right8()
409 fn rotate_each_word_right11(self) -> Self { in rotate_each_word_right11()
413 fn rotate_each_word_right12(self) -> Self { in rotate_each_word_right12()
417 fn rotate_each_word_right16(self) -> Self { in rotate_each_word_right16()
421 fn rotate_each_word_right20(self) -> Self { in rotate_each_word_right20()
425 fn rotate_each_word_right24(self) -> Self { in rotate_each_word_right24()
429 fn rotate_each_word_right25(self) -> Self { in rotate_each_word_right25()
435 fn rotate_each_word_right32(self) -> Self { in rotate_each_word_right32()
454 unsafe fn instance() -> Self { in instance()
479 fn from(d: u32x4_generic) -> Self { in from()
485 fn from(q: u64x2_generic) -> Self { in from()
491 fn from(o: u128x1_generic) -> Self { in from()
492 Self { q: q_of_o(o.0[0]) } in from()
498 unsafe fn unpack(s: vec128_storage) -> Self { in unpack()
504 unsafe fn unpack(s: vec128_storage) -> Self { in unpack()
510 unsafe fn unpack(s: vec128_storage) -> Self { in unpack()
522 fn add(self, rhs: Self) -> Self::Output { in add()
529 fn add(self, rhs: Self) -> Self::Output { in add()
536 fn add(self, rhs: Self) -> Self::Output { in add()
560 fn bswap(self) -> Self { in bswap()
566 fn bswap(self) -> Self { in bswap()
572 fn bswap(self) -> Self { in bswap()
578 unsafe fn unsafe_read_le(input: &[u8]) -> Self { in unsafe_read_le()
583 unsafe fn unsafe_read_be(input: &[u8]) -> Self { in unsafe_read_be()
600 unsafe fn unsafe_read_le(input: &[u8]) -> Self { in unsafe_read_le()
605 unsafe fn unsafe_read_be(input: &[u8]) -> Self { in unsafe_read_be()
634 fn to_scalars(self) -> [u32; 16] { in to_scalars()
651 fn to_lanes(self) -> [u32; 4] { in to_lanes()
655 fn from_lanes(xs: [u32; 4]) -> Self { in from_lanes()
661 fn to_lanes(self) -> [u64; 2] { in to_lanes()
665 fn from_lanes(xs: [u64; 2]) -> Self { in from_lanes()
671 fn to_lanes(self) -> [u64; 4] { in to_lanes()
676 fn from_lanes(xs: [u64; 4]) -> Self { in from_lanes()
686 fn to_lanes(self) -> [u128; 1] { in to_lanes()
690 fn from_lanes(xs: [u128; 1]) -> Self { in from_lanes()
696 fn extract(self, i: u32) -> u32 { in extract()
700 fn insert(mut self, v: u32, i: u32) -> Self { in insert()
707 fn extract(self, i: u32) -> u64 { in extract()
712 fn insert(self, v: u64, i: u32) -> Self { in insert()
719 fn extract(self, i: u32) -> u64 { in extract()
723 fn insert(mut self, v: u64, i: u32) -> Self { in insert()
731 fn shuffle2301(self) -> Self { in shuffle2301()
735 fn shuffle1230(self) -> Self { in shuffle1230()
740 fn shuffle3012(self) -> Self { in shuffle3012()
747 fn shuffle_lane_words2301(self) -> Self { in shuffle_lane_words2301()
751 fn shuffle_lane_words1230(self) -> Self { in shuffle_lane_words1230()
755 fn shuffle_lane_words3012(self) -> Self { in shuffle_lane_words3012()
762 fn shuffle2301(self) -> Self { in shuffle2301()
766 fn shuffle1230(self) -> Self { in shuffle1230()
770 fn shuffle3012(self) -> Self { in shuffle3012()
788 …($mach:ident, $MTy:ident, { $([$pub:tt$(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),*…
790 $($pub$(($krate))*)* fn $name($($arg: $argty),*) -> $ret {
791 let $mach = unsafe { $crate::generic::GenericMachine::instance() };
793 fn fn_impl<$MTy: $crate::Machine>($mach: $MTy, $($arg: $argty),*) -> $ret $body
794 fn_impl($mach, $($arg),*)
797 …($mach:ident, $MTy:ident, { $([$pub:tt $(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),…
798 dispatch!($mach, $MTy, {
799 $([$pub $(($krate))*])* fn $name($($arg: $argty),*) -> () $body
805 …($mach:ident, $MTy:ident, { $([$pub:tt$(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),*…
807 $($pub$(($krate))*)* fn $name($($arg: $argty),*) -> $ret {
808 let $mach = unsafe { $crate::generic::GenericMachine::instance() };
810 fn fn_impl<$MTy: $crate::Machine>($mach: $MTy, $($arg: $argty),*) -> $ret $body
811 fn_impl($mach, $($arg),*)
814 …($mach:ident, $MTy:ident, { $([$pub:tt $(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),…
815 dispatch!($mach, $MTy, {
816 $([$pub $(($krate))*])* fn $name($($arg: $argty),*) -> () $body
822 …($mach:ident, $MTy:ident, { $([$pub:tt$(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),*…
824 $($pub$(($krate))*)* fn $name($($arg: $argty),*) -> $ret {
825 let $mach = unsafe { $crate::generic::GenericMachine::instance() };
827 fn fn_impl<$MTy: $crate::Machine>($mach: $MTy, $($arg: $argty),*) -> $ret $body
828 fn_impl($mach, $($arg),*)
831 …($mach:ident, $MTy:ident, { $([$pub:tt $(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),…
832 dispatch!($mach, $MTy, {
833 $([$pub $(($krate))*])* fn $name($($arg: $argty),*) -> () $body
839 …($mach:ident, $MTy:ident, { $([$pub:tt$(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),*…
841 $($pub$(($krate))*)* fn $name($($arg: $argty),*) -> $ret {
842 let $mach = unsafe { $crate::generic::GenericMachine::instance() };
844 fn fn_impl<$MTy: $crate::Machine>($mach: $MTy, $($arg: $argty),*) -> $ret $body
845 fn_impl($mach, $($arg),*)
848 …($mach:ident, $MTy:ident, { $([$pub:tt $(($krate:tt))*])* fn $name:ident($($arg:ident: $argty:ty),…
849 dispatch!($mach, $MTy, {
850 $([$pub $(($krate))*])* fn $name($($arg: $argty),*) -> () $body