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

Method from_i64_eq

ctutils/src/choice.rs:95–97  ·  view source on GitHub ↗
(x: i64, y: i64)

Source from the content-addressed store, hash-verified

93 #[inline]
94 #[must_use]
95 pub const fn from_i64_eq(x: i64, y: i64) -> Self {
96 Self::from_u64_nz(x.cast_unsigned() ^ y.cast_unsigned()).not()
97 }
98
99 // u8
100

Callers

nothing calls this directly

Calls 2

from_u64_nzFunction · 0.85
notMethod · 0.80

Tested by

no test coverage detected