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

Method from_u128_le

ctutils/src/choice.rs:275–284  ·  view source on GitHub ↗
(x: u128, y: u128)

Source from the content-addressed store, hash-verified

273 #[inline]
274 #[must_use]
275 pub const fn from_u128_le(x: u128, y: u128) -> Self {
276 #[cfg(target_pointer_width = "32")]
277 {
278 Self::from_u128_lt(y, x).not()
279 }
280 #[cfg(not(target_pointer_width = "32"))]
281 {
282 Self::from_u128_lsb(bitle!(x, y, u128::BITS))
283 }
284 }
285
286 /// Initialize from the least significant bit of a `u128`.
287 #[inline]

Callers

nothing calls this directly

Calls 3

from_u128_ltFunction · 0.85
from_u128_lsbFunction · 0.85
notMethod · 0.80

Tested by

no test coverage detected