Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LPC4/Full-Stack
/ rs2
Function
rs2
crates/virtual-machine/src/cpu/decoder.rs:877–879 ·
view source on GitHub ↗
(word: u32)
Source
from the content-addressed store, hash-verified
875
field(word, 31, 25) as u8
876
}
877
878
// Sign-extend `val` (a value in the low `bits` bits) to `i64`.
879
fn sign_ext(val: u32, bits: u32) -> i64 {
880
let shift = 32 - bits;
881
((val << shift) as i32 >> shift) as i64
882
}
Callers
2
decode
Function · 0.85
fmac
Function · 0.85
Calls
1
field
Function · 0.85
Tested by
no test coverage detected