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

Method select_u128

ctutils/src/choice.rs:390–392  ·  view source on GitHub ↗
(self, a: u128, b: u128)

Source from the content-addressed store, hash-verified

388 #[inline]
389 #[must_use]
390 pub const fn select_u128(self, a: u128, b: u128) -> u128 {
391 a ^ (self.to_u128_mask() & (a ^ b))
392 }
393
394 //
395 // Output conversion methods

Callers

nothing calls this directly

Calls 1

to_u128_maskMethod · 0.80

Tested by

no test coverage detected