| GET_FPC_CSR(3) | Library Functions Manual (mips64) | GET_FPC_CSR(3) |
get_fpc_csr,
set_fpc_csr — floating-point
control register access
#include
<machine/fpu.h>
int
get_fpc_csr(void);
int
set_fpc_csr(int
csr);
The
get_fpc_csr()
function returns the current value of the floating-point control register.
The
set_fpc_csr()
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.
| June 6, 2025 | Debian |