Function core::arch::riscv64::frflags

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

Reads the floating-point accrued exception flags register fflags

The accrued exception flags indicate the exception conditions that have arisen on any floating-point arithmetic instruction since the field was last reset by software.

According to “F” Standard Extension for Single-Precision Floating-Point, Version 2.2, the accrued exception flags is defined as a bit vector of 5 bits. The meaning of each binary bit is listed in the table below.

Bit indexMnemonicMeaning
4NVInvalid Operation
3DZDivide by Zero
2OFOverflow
1UFUnderflow
0NXInexact