Skip to main content

sign_extend

Function sign_extend 

Source
pub(crate) fn sign_extend(code: u32, bits: u32) -> i64
Expand description

Sign-extends a bits-wide two’s-complement code to i64.