MCPcopy Create free account
hub / github.com/Vectorized/function-selector-miner / theta_

Function theta_

src/lib.rs:79–94  ·  view source on GitHub ↗
(a: &mut [T; 25], b: &[T; 5], m: usize, n: usize, o: usize)

Source from the content-addressed store, hash-verified

77
78#[inline(always)]
79fn theta_<T>(a: &mut [T; 25], b: &[T; 5], m: usize, n: usize, o: usize)
80where
81 T: BitXorAssign
82 + BitXor<Output = T>
83 + Shl<u32, Output = T>
84 + Shr<u32, Output = T>
85 + BitOr<Output = T>
86 + Copy,
87{
88 let t = b[m] ^ rotate_left(b[n], 1);
89 a[o] ^= t;
90 a[o + 5] ^= t;
91 a[o + 10] ^= t;
92 a[o + 15] ^= t;
93 a[o + 20] ^= t;
94}
95
96#[inline(always)]
97pub fn theta<T>(a: &mut [T; 25], b: &mut [T; 5])

Callers 1

thetaFunction · 0.85

Calls 1

rotate_leftFunction · 0.85

Tested by

no test coverage detected