pub fn frrm() -> u32🔬This is a nightly-only experimental API. (
stdsimd #48556)Available on RISC-V RV32 only.
Expand description
读取浮点舍入模式的寄存器 frm
根据 “F” 单精度浮点标准扩展,版本 2.2,舍入模式字段定义如下表所示:
| 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. |