MCPcopy Create free account
hub / github.com/RustCrypto/utils / inv_dbl

Method inv_dbl

dbl/src/lib.rs:56–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54
55 #[inline]
56 fn inv_dbl(self) -> Self {
57 let mut val = u64::from_be_bytes(self.into());
58
59 let a = val & 1;
60 val >>= 1;
61 val ^= a * ((1 << 63) ^ (C64 >> 1));
62
63 val.to_be_bytes().into()
64 }
65}
66
67impl sealed::Sealed for Array<u8, U8> {}

Callers

nothing calls this directly

Calls 3

defaultFunction · 0.85
try_intoMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected