Function
theta_
(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)] |
| 79 | fn theta_<T>(a: &mut [T; 25], b: &[T; 5], m: usize, n: usize, o: usize) |
| 80 | where |
| 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)] |
| 97 | pub fn theta<T>(a: &mut [T; 25], b: &mut [T; 5]) |
Tested by
no test coverage detected