Skip to main content

sign_extend

Function sign_extend 

Source
fn sign_extend(raw: U256, width: Option<usize>) -> U256
Expand description

Sign-extends the low width bits of raw to a full 256-bit two’s-complement value.