MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / lo

Function lo

src/backend/linux_raw/conv.rs:65–72  ·  view source on GitHub ↗
(x: u64)

Source from the content-addressed store, hash-verified

63#[cfg(target_pointer_width = "32")]
64#[inline]
65pub(super) fn lo<'a, Num: ArgNumber>(x: u64) -> ArgReg<'a, Num> {
66 #[cfg(target_endian = "little")]
67 let x = x >> 32;
68 #[cfg(target_endian = "big")]
69 let x = x & 0xffff_ffff;
70
71 pass_usize(x as usize)
72}
73
74/// Pass the "high" half of the endian-specific memory encoding of a `u64`, for
75/// 32-bit architectures.

Callers

nothing calls this directly

Calls 1

pass_usizeFunction · 0.85

Tested by

no test coverage detected