Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
quad.h File Reference

Go to the source code of this file.

Data Structures

union  _FP_UNION_Q
 

Macros

#define _FP_FRACTBITS_Q   (4*_FP_W_TYPE_SIZE)
 
#define _FP_FRACBITS_Q   113
 
#define _FP_FRACXBITS_Q   (_FP_FRACTBITS_Q - _FP_FRACBITS_Q)
 
#define _FP_WFRACBITS_Q   (_FP_WORKBITS + _FP_FRACBITS_Q)
 
#define _FP_WFRACXBITS_Q   (_FP_FRACTBITS_Q - _FP_WFRACBITS_Q)
 
#define _FP_EXPBITS_Q   15
 
#define _FP_EXPBIAS_Q   16383
 
#define _FP_EXPMAX_Q   32767
 
#define _FP_QNANBIT_Q   ((_FP_W_TYPE)1 << (_FP_FRACBITS_Q-2) % _FP_W_TYPE_SIZE)
 
#define _FP_IMPLBIT_Q   ((_FP_W_TYPE)1 << (_FP_FRACBITS_Q-1) % _FP_W_TYPE_SIZE)
 
#define _FP_OVERFLOW_Q   ((_FP_W_TYPE)1 << (_FP_WFRACBITS_Q % _FP_W_TYPE_SIZE))
 
#define FP_DECL_Q(X)   _FP_DECL(4,X)
 
#define FP_UNPACK_RAW_Q(X, val)   _FP_UNPACK_RAW_4(Q,X,val)
 
#define FP_UNPACK_RAW_QP(X, val)   _FP_UNPACK_RAW_4_P(Q,X,val)
 
#define FP_PACK_RAW_Q(val, X)   _FP_PACK_RAW_4(Q,val,X)
 
#define FP_PACK_RAW_QP(val, X)
 
#define FP_UNPACK_Q(X, val)
 
#define FP_UNPACK_QP(X, val)
 
#define FP_PACK_Q(val, X)
 
#define FP_PACK_QP(val, X)
 
#define FP_ISSIGNAN_Q(X)   _FP_ISSIGNAN(Q,4,X)
 
#define FP_NEG_Q(R, X)   _FP_NEG(Q,4,R,X)
 
#define FP_ADD_Q(R, X, Y)   _FP_ADD(Q,4,R,X,Y)
 
#define FP_SUB_Q(R, X, Y)   _FP_SUB(Q,4,R,X,Y)
 
#define FP_MUL_Q(R, X, Y)   _FP_MUL(Q,4,R,X,Y)
 
#define FP_DIV_Q(R, X, Y)   _FP_DIV(Q,4,R,X,Y)
 
#define FP_SQRT_Q(R, X)   _FP_SQRT(Q,4,R,X)
 
#define _FP_SQRT_MEAT_Q(R, S, T, X, Q)   _FP_SQRT_MEAT_4(R,S,T,X,Q)
 
#define FP_CMP_Q(r, X, Y, un)   _FP_CMP(Q,4,r,X,Y,un)
 
#define FP_CMP_EQ_Q(r, X, Y)   _FP_CMP_EQ(Q,4,r,X,Y)
 
#define FP_TO_INT_Q(r, X, rsz, rsg)   _FP_TO_INT(Q,4,r,X,rsz,rsg)
 
#define FP_TO_INT_ROUND_Q(r, X, rsz, rsg)   _FP_TO_INT_ROUND(Q,4,r,X,rsz,rsg)
 
#define FP_FROM_INT_Q(X, r, rs, rt)   _FP_FROM_INT(Q,4,X,r,rs,rt)
 
#define _FP_FRAC_HIGH_Q(X)   _FP_FRAC_HIGH_4(X)
 
#define _FP_FRAC_HIGH_RAW_Q(X)   _FP_FRAC_HIGH_4(X)
 

Variables

unsigned sign
 
unsigned exp
 
unsigned long frac3
 
unsigned long frac2
 
unsigned long frac1
 
unsigned long frac0
 
union _FP_UNION_Q __attribute__
 

Macro Definition Documentation

#define _FP_EXPBIAS_Q   16383

Definition at line 43 of file quad.h.

#define _FP_EXPBITS_Q   15

Definition at line 42 of file quad.h.

#define _FP_EXPMAX_Q   32767

Definition at line 44 of file quad.h.

#define _FP_FRAC_HIGH_Q (   X)    _FP_FRAC_HIGH_4(X)

Definition at line 130 of file quad.h.

#define _FP_FRAC_HIGH_RAW_Q (   X)    _FP_FRAC_HIGH_4(X)

Definition at line 131 of file quad.h.

#define _FP_FRACBITS_Q   113

Definition at line 38 of file quad.h.

#define _FP_FRACTBITS_Q   (4*_FP_W_TYPE_SIZE)

Definition at line 33 of file quad.h.

#define _FP_FRACXBITS_Q   (_FP_FRACTBITS_Q - _FP_FRACBITS_Q)

Definition at line 39 of file quad.h.

#define _FP_IMPLBIT_Q   ((_FP_W_TYPE)1 << (_FP_FRACBITS_Q-1) % _FP_W_TYPE_SIZE)

Definition at line 48 of file quad.h.

#define _FP_OVERFLOW_Q   ((_FP_W_TYPE)1 << (_FP_WFRACBITS_Q % _FP_W_TYPE_SIZE))

Definition at line 50 of file quad.h.

#define _FP_QNANBIT_Q   ((_FP_W_TYPE)1 << (_FP_FRACBITS_Q-2) % _FP_W_TYPE_SIZE)

Definition at line 46 of file quad.h.

#define _FP_SQRT_MEAT_Q (   R,
  S,
  T,
  X,
  Q 
)    _FP_SQRT_MEAT_4(R,S,T,X,Q)

Definition at line 121 of file quad.h.

#define _FP_WFRACBITS_Q   (_FP_WORKBITS + _FP_FRACBITS_Q)

Definition at line 40 of file quad.h.

#define _FP_WFRACXBITS_Q   (_FP_FRACTBITS_Q - _FP_WFRACBITS_Q)

Definition at line 41 of file quad.h.

#define FP_ADD_Q (   R,
  X,
 
)    _FP_ADD(Q,4,R,X,Y)

Definition at line 116 of file quad.h.

#define FP_CMP_EQ_Q (   r,
  X,
 
)    _FP_CMP_EQ(Q,4,r,X,Y)

Definition at line 124 of file quad.h.

#define FP_CMP_Q (   r,
  X,
  Y,
  un 
)    _FP_CMP(Q,4,r,X,Y,un)

Definition at line 123 of file quad.h.

#define FP_DECL_Q (   X)    _FP_DECL(4,X)

Definition at line 79 of file quad.h.

#define FP_DIV_Q (   R,
  X,
 
)    _FP_DIV(Q,4,R,X,Y)

Definition at line 119 of file quad.h.

#define FP_FROM_INT_Q (   X,
  r,
  rs,
  rt 
)    _FP_FROM_INT(Q,4,X,r,rs,rt)

Definition at line 128 of file quad.h.

#define FP_ISSIGNAN_Q (   X)    _FP_ISSIGNAN(Q,4,X)

Definition at line 114 of file quad.h.

#define FP_MUL_Q (   R,
  X,
 
)    _FP_MUL(Q,4,R,X,Y)

Definition at line 118 of file quad.h.

#define FP_NEG_Q (   R,
  X 
)    _FP_NEG(Q,4,R,X)

Definition at line 115 of file quad.h.

#define FP_PACK_Q (   val,
  X 
)
Value:
do { \
_FP_PACK_CANONICAL(Q,4,X); \
_FP_PACK_RAW_4(Q,val,X); \
} while (0)

Definition at line 101 of file quad.h.

#define FP_PACK_QP (   val,
  X 
)
Value:
do { \
_FP_PACK_CANONICAL(Q,4,X); \
_FP_PACK_RAW_4_P(Q,val,X); \
} while (0)

Definition at line 107 of file quad.h.

#define FP_PACK_RAW_Q (   val,
  X 
)    _FP_PACK_RAW_4(Q,val,X)

Definition at line 82 of file quad.h.

#define FP_PACK_RAW_QP (   val,
  X 
)
Value:
do { \
_FP_PACK_RAW_4_P(Q,val,X); \
} while (0)

Definition at line 83 of file quad.h.

#define FP_SQRT_Q (   R,
  X 
)    _FP_SQRT(Q,4,R,X)

Definition at line 120 of file quad.h.

#define FP_SUB_Q (   R,
  X,
 
)    _FP_SUB(Q,4,R,X,Y)

Definition at line 117 of file quad.h.

#define FP_TO_INT_Q (   r,
  X,
  rsz,
  rsg 
)    _FP_TO_INT(Q,4,r,X,rsz,rsg)

Definition at line 126 of file quad.h.

#define FP_TO_INT_ROUND_Q (   r,
  X,
  rsz,
  rsg 
)    _FP_TO_INT_ROUND(Q,4,r,X,rsz,rsg)

Definition at line 127 of file quad.h.

#define FP_UNPACK_Q (   X,
  val 
)
Value:
do { \
_FP_UNPACK_RAW_4(Q,X,val); \
_FP_UNPACK_CANONICAL(Q,4,X); \
} while (0)

Definition at line 89 of file quad.h.

#define FP_UNPACK_QP (   X,
  val 
)
Value:
do { \
_FP_UNPACK_RAW_4_P(Q,X,val); \
_FP_UNPACK_CANONICAL(Q,4,X); \
} while (0)

Definition at line 95 of file quad.h.

#define FP_UNPACK_RAW_Q (   X,
  val 
)    _FP_UNPACK_RAW_4(Q,X,val)

Definition at line 80 of file quad.h.

#define FP_UNPACK_RAW_QP (   X,
  val 
)    _FP_UNPACK_RAW_4_P(Q,X,val)

Definition at line 81 of file quad.h.

Variable Documentation

unsigned exp

Definition at line 78 of file quad.h.

unsigned long frac0

Definition at line 82 of file quad.h.

unsigned long frac1

Definition at line 81 of file quad.h.

unsigned long frac2

Definition at line 80 of file quad.h.

unsigned long frac3

Definition at line 79 of file quad.h.

unsigned sign

Definition at line 77 of file quad.h.