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

Function fmac

crates/virtual-machine/src/cpu/decoder.rs:844–854  ·  view source on GitHub ↗
(word: u32, op: FMacOp)

Source from the content-addressed store, hash-verified

842}
843
844fn fmac(word: u32, op: FMacOp) -> DecodedInsn {
845 DecodedInsn::FMac {
846 op,
847 rs3: field(word, 31, 27) as usize,
848 fmt: field(word, 26, 25) as u8,
849 rm: funct3(word),
850 rd: rd(word),
851 rs1: rs1(word),
852 rs2: rs2(word),
853 }
854}
855
856// --- Field extraction helpers ---
857

Callers 1

decodeFunction · 0.85

Calls 5

fieldFunction · 0.85
funct3Function · 0.85
rdFunction · 0.85
rs1Function · 0.85
rs2Function · 0.85

Tested by

no test coverage detected