get_fpc_csr(3) – loongson floating-point control register access
get_fpc_csr(3) – octeon floating-point control register access
GET_FPC_CSR(3) Library Functions Manual (mips64) GET_FPC_CSR(3)

get_fpc_csr, set_fpc_csrfloating-point control register access

#include <machine/fpu.h>

int
get_fpc_csr(void);

int
set_fpc_csr(int csr);

The () function returns the current value of the floating-point control register. The () function replaces the value of the floating-point control register with csr and returns the previous value.

These functions are provided for IRIX compatibility, and should only be used to control the value of the FPCSR_FS bit in the floating-point control register. Portable code should use the fpgetmask(3), fpgetround(3), fpgetsticky(3), fpsetmask(3), fpsetround(3), and fpsetsticky(3) functions to inquire or alter the floating-point control register.

The get_fpc_csr() and set_fpc_csr() functions return the (previous) value of the floating-point control register.

fpgetmask(3)

October 8, 2017 OpenBSD 7.6