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

Method select_u128

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

Source from the content-addressed store, hash-verified

362 #[inline]
363 #[must_use]
364 pub const fn select_u128(self, a: u128, b: u128) -> u128 {
365 a ^ (self.to_u128_mask() & (a ^ b))
366 }
367
368 //
369 // Output conversion methods

Callers

nothing calls this directly

Calls 1

to_u128_maskMethod · 0.80

Tested by

no test coverage detected