pub fn frcsr() -> u32
🔬 This is a nightly-only experimental API. (stdsimd #48556)
This is supported on target_arch="riscv32" only.
Expand description

Reads the floating-point control and status register fcsr

Register fcsr is a 32-bit read/write register that selects the dynamic rounding mode for floating-point arithmetic operations and holds the accrued exception flag.

Accoding to “F” Standard Extension for Single-Precision Floating-Point, Version 2.2, register fcsr is defined as:

Bit indexMeaning
0..=4Accrued Exceptions (fflags)
5..=7Rounding Mode (frm)
8..=31Reserved

For definition of each field, visit frrm and frflags.