fpgetmask(3C) fpgetmask(3C)
fpgetmask, fpgetround, fpgetsticky, fpsetmask, fpsetround, fpsetsticky -
fetch/set subfields of floating-point control status register of MIPS
floating-point units
#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);
These routines fetch/set various subfields of the floatingpoint
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.
Page 1
fpgetmask(3C) fpgetmask(3C)
fpc(3C), sigfpe(3C)
R4000 Microprocessor User's Manual
All of these routines take and/or return their values right justified.
PPPPaaaaggggeeee 2222 [ Back ]
|