frrm in core::arch::riscv32 - Rust
Description: Reads the floating-point rounding mode register `frm`

Skip to main content

## frrm

# Function 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 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.