MCPcopy Create free account
hub / github.com/docknetwork/crypto / modulo_8

Function modulo_8

oblivious_transfer/src/util.rs:53–55  ·  view source on GitHub ↗
(n: T)

Source from the content-addressed store, hash-verified

51
52#[inline]
53pub fn modulo_8<T: BitAnd<Output = T> + From<u8>>(n: T) -> T {
54 n & 7u8.into()
55}
56
57#[inline]
58pub fn is_multiple_of_8<T: BitAnd<Output = T> + From<u8> + Eq>(n: T) -> bool {

Callers 4

is_multiple_of_8Function · 0.85
get_bitFunction · 0.85
set_bitFunction · 0.85
boolvec_to_u8vecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected