pub fn frrm() -> u32
๐ฌThis is a nightly-only experimental API. (
riscv_ext_intrinsics
#114544)Available on RISC-V RV64 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 Mode | Mnemonic | Meaning |
---|---|---|
000 | RNE | Round to Nearest, ties to Even |
001 | RTZ | Round towards Zero |
010 | RDN | Round Down (towards โโ) |
011 | RUP | Round Up (towards +โ) |
100 | RMM | Round to Nearest, ties to Max Magnitude |
101 | Reserved for future use. | |
110 | Reserved for future use. | |
111 | DYN | In Rounding Mode register, reserved. |