Function gimli::read::value::sign_extend

source ยท
fn sign_extend(value: u64, mask: u64) -> i64
Expand description

Convert a u64 to an i64, with sign extension if required.

This is primarily used when needing to treat Value::Generic as a signed value.