Skip to main content

trunc_signed

Function trunc_signed 

Source
pub fn trunc_signed(x: i64, bits: u32) -> i64
Expand description

Sign-extend x from its low bits (the int-precision truncation; bits >= 64 is a no-op). Matches the RTL’s $signed(x[bits-1:0]).