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

Method write_f_bits

crates/virtual-machine/src/cpu/registers.rs:54–56  ·  view source on GitHub ↗
(&mut self, reg: usize, val: u64)

Source from the content-addressed store, hash-verified

52 }
53
54 pub fn write_f_bits(&mut self, reg: usize, val: u64) {
55 self.f[reg] = val;
56 }
57
58 /// Reads the register as an f32. Bits `63:32` other than all 1s mean the value
59 /// is not validly NaN-boxed, so the canonical NaN is returned (RISC-V 11.3).

Callers 3

stage_exMethod · 0.80
writebackFunction · 0.80
fp_nan_box_invalid_upperFunction · 0.80

Calls

no outgoing calls

Tested by 1

fp_nan_box_invalid_upperFunction · 0.64