fpgetmask(3C)
fpgetmask, fpgetround, fpgetsticky, fpsetmask, fpsetround, fpsetsticky - fetch/set subfields of floating-point control status register of MIPS floating-point units
As shipped in IRIX 6.5. First release of IRIX 6.5.
NAME fpgetmask, fpgetround, fpgetsticky, fpsetmask, fpsetround, fpsetsticky - fetch/set subfields of floating-point control status register of MIPS floating-point units SYNOPSIS #include <ieeefp.h> #define fp_except int typedef enum fp_rnd { FP_RN = 0, /* round to nearest representable number, tie -> even */ FP_RZ = 1, /* round toward zero (truncate) */ FP_RP = 2, /* round toward plus infinity */ FP_RM = 3 /* round toward minus infinity */ } fp_rnd; fp_except fpgetmask(void); fp_rnd fpgetround(void); fp_except fpgetsticky(void); fp_except fpsetmask(fp_except); fp_rnd fpsetround(fp_rnd); fp_except fpsetsticky(fp_except); DESCRIPTION These routines fetch/set various subfields of the floating- point control status register of the floating-point unit. fpgetmask returns the current exception mask. fpgetround returns the current rounding mode. fpgetsticky returns the logged exceptions. fpsetmask sets the exception mask, returning the previous exception mask. Any sticky bit whose corresponding mask bit is being enabled is cleared. fpsetround sets the rounding mode, returning the previous rounding mode. fpsetsticky sets the logged exceptions, returning the previous logged exceptions. SEE ALSO fpc(3C), sigfpe(3C) R4000 Microprocessor User's Manual NOTES All of these routines take and/or return their values right justified.