Back to index

glibc  2.9
Defines | Typedefs | Functions
soft-fp.h File Reference
#include "sfp-machine.h"
#include "op-1.h"
#include "op-2.h"
#include "op-4.h"
#include "op-8.h"
#include "op-common.h"
#include "longlong.h"

Go to the source code of this file.

Defines

#define _FP_WORKBITS   3
#define _FP_WORK_LSB   ((_FP_W_TYPE)1 << 3)
#define _FP_WORK_ROUND   ((_FP_W_TYPE)1 << 2)
#define _FP_WORK_GUARD   ((_FP_W_TYPE)1 << 1)
#define _FP_WORK_STICKY   ((_FP_W_TYPE)1 << 0)
#define FP_RND_NEAREST   0
#define FP_RND_ZERO   1
#define FP_RND_PINF   2
#define FP_RND_MINF   3
#define FP_ROUNDMODE   FP_RND_NEAREST
#define FP_EX_INVALID   0
#define FP_EX_OVERFLOW   0
#define FP_EX_UNDERFLOW   0
#define FP_EX_DIVZERO   0
#define FP_EX_INEXACT   0
#define FP_EX_DENORM   0
#define FP_DECL_EX   int _fex = 0
#define FP_INIT_ROUNDMODE   do {} while (0)
#define FP_HANDLE_EXCEPTIONS   do {} while (0)
#define FP_INHIBIT_RESULTS   0
#define FP_SET_EXCEPTION(ex)   _fex |= (ex)
#define FP_UNSET_EXCEPTION(ex)   _fex &= ~(ex)
#define FP_CLEAR_EXCEPTIONS   _fex = 0
#define _FP_ROUND_NEAREST(wc, X)
#define _FP_ROUND_ZERO(wc, X)   (void)0
#define _FP_ROUND_PINF(wc, X)
#define _FP_ROUND_MINF(wc, X)
#define _FP_ROUND(wc, X)
#define FP_CLS_NORMAL   0
#define FP_CLS_ZERO   1
#define FP_CLS_INF   2
#define FP_CLS_NAN   3
#define _FP_CLS_COMBINE(x, y)   (((x) << 2) | (y))
#define UWtype   _FP_W_TYPE
#define W_TYPE_SIZE   _FP_W_TYPE_SIZE
#define CMPtype   int
#define SI_BITS   (__CHAR_BIT__ * (int)sizeof(SItype))
#define DI_BITS   (__CHAR_BIT__ * (int)sizeof(DItype))

Typedefs

typedef int QItype __attribute__ ((mode(QI)))

Functions

void abort (void)

Define Documentation

#define _FP_CLS_COMBINE (   x,
  y 
)    (((x) << 2) | (y))

Definition at line 168 of file soft-fp.h.

#define _FP_ROUND (   wc,
  X 
)
Value:
do {                                      \
       if (_FP_FRAC_LOW_##wc(X) & 7)             \
         FP_SET_EXCEPTION(FP_EX_INEXACT); \
       switch (FP_ROUNDMODE)                     \
       {                                  \
         case FP_RND_NEAREST:                    \
           _FP_ROUND_NEAREST(wc,X);              \
           break;                         \
         case FP_RND_ZERO:                \
           _FP_ROUND_ZERO(wc,X);          \
           break;                         \
         case FP_RND_PINF:                \
           _FP_ROUND_PINF(wc,X);          \
           break;                         \
         case FP_RND_MINF:                \
           _FP_ROUND_MINF(wc,X);          \
           break;                         \
       }                                  \
} while (0)

Definition at line 142 of file soft-fp.h.

#define _FP_ROUND_MINF (   wc,
  X 
)
Value:
do {                                             \
    if (X##_s && (_FP_FRAC_LOW_##wc(X) & 7))            \
      _FP_FRAC_ADDI_##wc(X, _FP_WORK_LSB);              \
} while (0)

Definition at line 136 of file soft-fp.h.

#define _FP_ROUND_NEAREST (   wc,
  X 
)
Value:
do {                                             \
    if ((_FP_FRAC_LOW_##wc(X) & 15) != _FP_WORK_ROUND)  \
      _FP_FRAC_ADDI_##wc(X, _FP_WORK_ROUND);            \
} while (0)

Definition at line 122 of file soft-fp.h.

#define _FP_ROUND_PINF (   wc,
  X 
)
Value:
do {                                             \
    if (!X##_s && (_FP_FRAC_LOW_##wc(X) & 7))           \
      _FP_FRAC_ADDI_##wc(X, _FP_WORK_LSB);              \
} while (0)

Definition at line 130 of file soft-fp.h.

#define _FP_ROUND_ZERO (   wc,
  X 
)    (void)0

Definition at line 128 of file soft-fp.h.

#define _FP_WORK_GUARD   ((_FP_W_TYPE)1 << 1)

Definition at line 55 of file soft-fp.h.

#define _FP_WORK_LSB   ((_FP_W_TYPE)1 << 3)

Definition at line 53 of file soft-fp.h.

#define _FP_WORK_ROUND   ((_FP_W_TYPE)1 << 2)

Definition at line 54 of file soft-fp.h.

#define _FP_WORK_STICKY   ((_FP_W_TYPE)1 << 0)

Definition at line 56 of file soft-fp.h.

#define _FP_WORKBITS   3

Definition at line 52 of file soft-fp.h.

#define CMPtype   int

Definition at line 193 of file soft-fp.h.

#define DI_BITS   (__CHAR_BIT__ * (int)sizeof(DItype))

Definition at line 197 of file soft-fp.h.

#define FP_CLEAR_EXCEPTIONS   _fex = 0

Definition at line 119 of file soft-fp.h.

#define FP_CLS_INF   2

Definition at line 165 of file soft-fp.h.

#define FP_CLS_NAN   3

Definition at line 166 of file soft-fp.h.

#define FP_CLS_NORMAL   0

Definition at line 163 of file soft-fp.h.

#define FP_CLS_ZERO   1

Definition at line 164 of file soft-fp.h.

#define FP_DECL_EX   int _fex = 0

Definition at line 93 of file soft-fp.h.

#define FP_EX_DENORM   0

Definition at line 85 of file soft-fp.h.

#define FP_EX_DIVZERO   0

Definition at line 79 of file soft-fp.h.

#define FP_EX_INEXACT   0

Definition at line 82 of file soft-fp.h.

#define FP_EX_INVALID   0

Definition at line 70 of file soft-fp.h.

#define FP_EX_OVERFLOW   0

Definition at line 73 of file soft-fp.h.

#define FP_EX_UNDERFLOW   0

Definition at line 76 of file soft-fp.h.

#define FP_HANDLE_EXCEPTIONS   do {} while (0)

Definition at line 101 of file soft-fp.h.

#define FP_INHIBIT_RESULTS   0

Definition at line 110 of file soft-fp.h.

#define FP_INIT_ROUNDMODE   do {} while (0)

Definition at line 97 of file soft-fp.h.

#define FP_RND_MINF   3

Definition at line 62 of file soft-fp.h.

#define FP_RND_NEAREST   0

Definition at line 59 of file soft-fp.h.

#define FP_RND_PINF   2

Definition at line 61 of file soft-fp.h.

#define FP_RND_ZERO   1

Definition at line 60 of file soft-fp.h.

Definition at line 65 of file soft-fp.h.

#define FP_SET_EXCEPTION (   ex)    _fex |= (ex)

Definition at line 113 of file soft-fp.h.

#define FP_UNSET_EXCEPTION (   ex)    _fex &= ~(ex)

Definition at line 116 of file soft-fp.h.

#define SI_BITS   (__CHAR_BIT__ * (int)sizeof(SItype))

Definition at line 196 of file soft-fp.h.

#define UWtype   _FP_W_TYPE

Definition at line 177 of file soft-fp.h.

Definition at line 178 of file soft-fp.h.


Typedef Documentation

typedef unsigned int UDItype __attribute__((mode(DI)))

Definition at line 180 of file soft-fp.h.


Function Documentation

void abort ( void  )

Definition at line 37 of file dl-machine.c.

{
  _exit (127);
}