Function core::arch::riscv64::frrm

source ·
pub fn frrm() -> u32
🔬This is a nightly-only experimental API. (stdsimd #48556)
Available on RISC-V RV64 only.
Expand description

读取浮点舍入模式的寄存器 frm

根据 “F” 单精度浮点标准扩展,版本 2.2,舍入模式字段定义如下表所示:

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.