(n: T)
| 56 | |
| 57 | #[inline] |
| 58 | pub fn is_multiple_of_8<T: BitAnd<Output = T> + From<u8> + Eq>(n: T) -> bool { |
| 59 | modulo_8(n) == 0u8.into() |
| 60 | } |
| 61 | |
| 62 | /// Transpose an 8x8 bit matrix given as a u64. The code is taken from the book Hacker's Delight's figure 7.6 after |
| 63 | /// slight modification. In the book's code, the matrix is passed as an array of 8 bytes which converts it to a |
no test coverage detected