Function core::arch::riscv32::frrm

source ยท
pub fn frrm() -> u32
๐Ÿ”ฌThis is a nightly-only experimental API. (riscv_ext_intrinsics #114544)
Available on RISC-V RV32 only.
Expand description

Reads the floating-point rounding mode register frm

According to โ€œFโ€ Standard Extension for Single-Precision Floating-Point, Version 2.2, the rounding mode field is defined as listed in the table below:

Rounding ModeMnemonicMeaning
000RNERound to Nearest, ties to Even
001RTZRound towards Zero
010RDNRound Down (towards โˆ’โˆž)
011RUPRound Up (towards +โˆž)
100RMMRound to Nearest, ties to Max Magnitude
101Reserved for future use.
110Reserved for future use.
111DYNIn Rounding Mode register, reserved.