ARB
Macros
defs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BUFFERLENGTH   200000
 
#define TRUE   1
 
#define FALSE   0
 
#define INTEGER_MAX   2147483648
 
#define REAL_MAX   1.7976931348623157E+308
 
#define REAL_MIN   2.2250738585072014E-308
 
#define LOG_REAL_MIN   -708.396
 
#define INTEGER_MAX2EXP   31
 
#define REAL_MAX2EXP   1024
 
#define REAL_MIN2EXP   -1022
 
#define LOG2   0.6931471805599453094172321214581765680755
 
#define PI   3.141592653589793238462643383279502884197
 
#define Make(x, ref)   ((x)->t=ELEMENT,(x)->r=ref)
 
#define MakeList(x)   ((x)->t=ELEMENT,(x)->r=List_R)
 
#define MakeInteger(x, val)   ((x)->t=INTEGER,(x)->u.v.i=val)
 
#define Is(x, ref)   ((x)->t==ELEMENT&&(x)->r==ref)
 
#define IsList(x)   ((x)->t==ELEMENT&&(x)->r==List_R)
 
#define IsInteger(x)   ((x)->t==INTEGER)
 
#define IsReal(x)   ((x)->t==REAL)
 
#define IsNumber(x)   ((x)->t==INTEGER||(x)->t==REAL)
 
#define Is0(x)   ((x)->t==INTEGER&&(x)->u.v.i==0||(x)->t==REAL&&(x)->u.v.r==0.)
 
#define Is1(x)   ((x)->t==INTEGER&&(x)->u.v.i==1||(x)->t==REAL&&(x)->u.v.r==1.)
 
#define IsMinus1(x)   ((x)->t==INTEGER&&(x)->u.v.i==-1||(x)->t==REAL&&(x)->u.v.r==-1.)
 
#define IsPositiveNumber(x)   ((x)->t==INTEGER&&(x)->u.v.i>0||(x)->t==REAL&&(x)->u.v.r>0.)
 
#define IsNegativeNumber(x)   ((x)->t==INTEGER&&(x)->u.v.i<0||(x)->t==REAL&&(x)->u.v.r<0.)
 
#define IsPositiveInteger(x)   ((x)->t==INTEGER&&(x)->u.v.i>0)
 
#define IsNegativeInteger(x)   ((x)->t==INTEGER&&(x)->u.v.i<0)
 
#define Has1Arg(x)   ((x)->l&&!(x)->l->n)
 
#define Has2Args(x)   ((x)->l&&(x)->l->n&&!(x)->l->n->n)
 

Macro Definition Documentation

#define BUFFERLENGTH   200000

Definition at line 14 of file defs.h.

#define TRUE   1
#define FALSE   0
#define INTEGER_MAX   2147483648

Definition at line 24 of file defs.h.

#define REAL_MAX   1.7976931348623157E+308

Definition at line 25 of file defs.h.

#define REAL_MIN   2.2250738585072014E-308

Definition at line 26 of file defs.h.

Referenced by normalizeBaseFreqs(), normalizeRateParams(), and updateEntropy().

#define LOG_REAL_MIN   -708.396

Definition at line 27 of file defs.h.

Referenced by updateEntropy().

#define INTEGER_MAX2EXP   31

Definition at line 29 of file defs.h.

#define REAL_MAX2EXP   1024

Definition at line 30 of file defs.h.

#define REAL_MIN2EXP   -1022

Definition at line 31 of file defs.h.

#define LOG2   0.6931471805599453094172321214581765680755

Definition at line 33 of file defs.h.

#define PI   3.141592653589793238462643383279502884197

Definition at line 34 of file defs.h.

#define Make (   x,
  ref 
)    ((x)->t=ELEMENT,(x)->r=ref)

Definition at line 36 of file defs.h.

#define MakeList (   x)    ((x)->t=ELEMENT,(x)->r=List_R)

Definition at line 37 of file defs.h.

#define MakeInteger (   x,
  val 
)    ((x)->t=INTEGER,(x)->u.v.i=val)

Definition at line 38 of file defs.h.

#define Is (   x,
  ref 
)    ((x)->t==ELEMENT&&(x)->r==ref)

Definition at line 40 of file defs.h.

#define IsList (   x)    ((x)->t==ELEMENT&&(x)->r==List_R)

Definition at line 41 of file defs.h.

#define IsInteger (   x)    ((x)->t==INTEGER)

Definition at line 42 of file defs.h.

#define IsReal (   x)    ((x)->t==REAL)

Definition at line 43 of file defs.h.

#define IsNumber (   x)    ((x)->t==INTEGER||(x)->t==REAL)

Definition at line 44 of file defs.h.

#define Is0 (   x)    ((x)->t==INTEGER&&(x)->u.v.i==0||(x)->t==REAL&&(x)->u.v.r==0.)

Definition at line 46 of file defs.h.

#define Is1 (   x)    ((x)->t==INTEGER&&(x)->u.v.i==1||(x)->t==REAL&&(x)->u.v.r==1.)

Definition at line 47 of file defs.h.

#define IsMinus1 (   x)    ((x)->t==INTEGER&&(x)->u.v.i==-1||(x)->t==REAL&&(x)->u.v.r==-1.)

Definition at line 48 of file defs.h.

#define IsPositiveNumber (   x)    ((x)->t==INTEGER&&(x)->u.v.i>0||(x)->t==REAL&&(x)->u.v.r>0.)

Definition at line 49 of file defs.h.

#define IsNegativeNumber (   x)    ((x)->t==INTEGER&&(x)->u.v.i<0||(x)->t==REAL&&(x)->u.v.r<0.)

Definition at line 50 of file defs.h.

#define IsPositiveInteger (   x)    ((x)->t==INTEGER&&(x)->u.v.i>0)

Definition at line 51 of file defs.h.

#define IsNegativeInteger (   x)    ((x)->t==INTEGER&&(x)->u.v.i<0)

Definition at line 52 of file defs.h.

#define Has1Arg (   x)    ((x)->l&&!(x)->l->n)

Definition at line 54 of file defs.h.

#define Has2Args (   x)    ((x)->l&&(x)->l->n&&!(x)->l->n->n)

Definition at line 55 of file defs.h.