MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / field

Function field

crates/virtual-machine/src/cpu/decoder.rs:859–866  ·  view source on GitHub ↗

Extract bits [hi..lo] (inclusive) from `word`.

(word: u32, hi: u32, lo: u32)

Source from the content-addressed store, hash-verified

857#[inline]
858fn rd(word: u32) -> usize {
859 field(word, 11, 7) as usize
860}
861#[inline]
862fn rs1(word: u32) -> usize {
863 field(word, 19, 15) as usize
864}
865#[inline]
866fn rs2(word: u32) -> usize {
867 field(word, 24, 20) as usize
868}
869#[inline]

Callers 15

loadMethod · 0.85
capture_traceFunction · 0.85
decodeFunction · 0.85
decode_fenceFunction · 0.85
decode_systemFunction · 0.85
fmacFunction · 0.85
rdFunction · 0.85
rs1Function · 0.85
rs2Function · 0.85
funct3Function · 0.85
funct7Function · 0.85
i_immFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected