*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> fpgetmask (3c)              
Title
Content
Arch
Section
 

Contents


fpgetmask(3C)							 fpgetmask(3C)


NAME    [Toc]    [Back]

     fpgetmask,	fpgetround, fpgetsticky, fpsetmask, fpsetround,	fpsetsticky -
     fetch/set subfields of floating-point control status register of MIPS
     floating-point units

SYNOPSIS    [Toc]    [Back]

     #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    [Toc]    [Back]

     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)


SEE ALSO    [Toc]    [Back]

      
      
     fpc(3C), sigfpe(3C)
     R4000 Microprocessor User's Manual

NOTES    [Toc]    [Back]

     All of these routines take	and/or return their values right justified.


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
onlinediag IRIX run diagnostic tests on cpus to test floating point units.
logb Tru64 Manipulate floating-point numbers
fpgetprec FreeBSD IEEE floating point interface
fpresetsticky FreeBSD IEEE floating point interface
fpsetsticky FreeBSD IEEE floating point interface
fpgetsticky FreeBSD IEEE floating point interface
fpsetmask FreeBSD IEEE floating point interface
fpgetmask FreeBSD IEEE floating point interface
fpsetround FreeBSD IEEE floating point interface
fpgetround FreeBSD IEEE floating point interface
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service