Back to index

glibc  2.9
Defines | Typedefs | Variables
fpu_control.h File Reference

Go to the source code of this file.

Defines

#define _FPU_RC_NEAREST   0x00 /* RECOMMENDED */
#define _FPU_RC_DOWN   0x03
#define _FPU_RC_UP   0x02
#define _FPU_RC_ZERO   0x01
#define _FPU_MASK_NI   0x04 /* non-ieee mode */
#define _FPU_MASK_ZM   0x10 /* zero divide */
#define _FPU_MASK_OM   0x40 /* overflow */
#define _FPU_MASK_UM   0x20 /* underflow */
#define _FPU_MASK_XM   0x08 /* inexact */
#define _FPU_MASK_IM   0x80 /* invalid operation */
#define _FPU_RESERVED   0xffffff00 /* These bits are reserved are not changed. */
#define _FPU_DEFAULT   0x00000000 /* Default value. */
#define _FPU_IEEE   0x000000f0
#define _FPU_GETCW(__cw)
#define _FPU_SETCW(__cw)

Typedefs

typedef unsigned int fpu_control_t __attribute__ ((__mode__(__SI__)))

Variables

fpu_control_t __fpu_control

Define Documentation

#define _FPU_DEFAULT   0x00000000 /* Default value. */

Definition at line 41 of file fpu_control.h.

#define _FPU_GETCW (   __cw)
Value:
( { \
  union { double d; fpu_control_t cw[2]; } \
    tmp __attribute__ ((__aligned__(8))); \
  __asm__ ("mffs 0; stfd%U0 0,%0" : "=m" (tmp.d) : : "fr0"); \
  (__cw)=tmp.cw[1]; \
  tmp.cw[1]; } )

Definition at line 52 of file fpu_control.h.

#define _FPU_IEEE   0x000000f0

Definition at line 46 of file fpu_control.h.

#define _FPU_MASK_IM   0x80 /* invalid operation */

Definition at line 36 of file fpu_control.h.

#define _FPU_MASK_NI   0x04 /* non-ieee mode */

Definition at line 29 of file fpu_control.h.

#define _FPU_MASK_OM   0x40 /* overflow */

Definition at line 33 of file fpu_control.h.

#define _FPU_MASK_UM   0x20 /* underflow */

Definition at line 34 of file fpu_control.h.

#define _FPU_MASK_XM   0x08 /* inexact */

Definition at line 35 of file fpu_control.h.

#define _FPU_MASK_ZM   0x10 /* zero divide */

Definition at line 32 of file fpu_control.h.

#define _FPU_RC_DOWN   0x03

Definition at line 25 of file fpu_control.h.

#define _FPU_RC_NEAREST   0x00 /* RECOMMENDED */

Definition at line 24 of file fpu_control.h.

#define _FPU_RC_UP   0x02

Definition at line 26 of file fpu_control.h.

#define _FPU_RC_ZERO   0x01

Definition at line 27 of file fpu_control.h.

#define _FPU_RESERVED   0xffffff00 /* These bits are reserved are not changed. */

Definition at line 38 of file fpu_control.h.

#define _FPU_SETCW (   __cw)
Value:
{ \
  union { double d; fpu_control_t cw[2]; } \
    tmp __attribute__ ((__aligned__(8))); \
  tmp.cw[0] = 0xFFF80000; /* More-or-less arbitrary; this is a QNaN. */ \
  tmp.cw[1] = __cw; \
  __asm__ ("lfd%U0 0,%0; mtfsf 255,0" : : "m" (tmp.d) : "fr0"); \
}

Definition at line 58 of file fpu_control.h.


Typedef Documentation

typedef unsigned int fpu_control_t __attribute__((__mode__(__SI__)))

Definition at line 49 of file fpu_control.h.


Variable Documentation

Definition at line 25 of file fpu_control.c.