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

Function hi

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

Source from the content-addressed store, hash-verified

76#[cfg(target_pointer_width = "32")]
77#[inline]
78pub(super) fn hi<'a, Num: ArgNumber>(x: u64) -> ArgReg<'a, Num> {
79 #[cfg(target_endian = "little")]
80 let x = x & 0xffff_ffff;
81 #[cfg(target_endian = "big")]
82 let x = x >> 32;
83
84 pass_usize(x as usize)
85}
86
87/// Pass a zero, or null, argument.
88#[inline]

Callers

nothing calls this directly

Calls 1

pass_usizeFunction · 0.85

Tested by

no test coverage detected