Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

spuc.h File Reference

Various Defined Constants and Macros. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SPUC

Defines

#define MAXINT   32767
#define MXLONG   4294967295
#define BIG   72057594037927936.
#define HUGED   1.701411733192644270e38
#define LOGHUGE   39
#define LN2   0.69314718055994530941
#define ILN2   1.4426950408889634
#define LN10   2.30258509299404568401
#define E   2.7182818284590452353602874
#define SQRT2   1.41421356237309504880
#define HALFSQRT2   .70710678118654752440
#define PI   3.141592653589793238462643
#define QUARTPI   0.78539816339744830962
#define HALFPI   1.57079632679489661923
#define TWOPI   6.28318530717958647692
#define RADPDEG   0.01745329251994329576
#define RTD   57.295781
#define SQR(x)   ((x) * (x))
#define SGN(x)   ((x) < 0 ? -1 : 1)
#define XSWAP(a, b)   a ^= b, b ^= a, a ^= b
#define SWAP(a, b, c)   c = a, a = b, b = c
#define MAX(x, y)   ((x) >= (y) ? (x) : (y))
#define MIN(x, y)   ((x) <= (y) ? (x) : (y))
#define ABS(x)   ( (x < 0) ? (-x) : (x))
#define MODULO(x, y)   ((x)%(y))
#define LOGE(x)   (log(x))
#define LN(x)   (log(x))
#define MASK_LOW(n)   ((1<<n) - 1)
#define MASK_BIT(n)   (1<<n)
#define MASK_NEG_HI(n)   (-1<<(32-n))
#define CLIP(A, B, C)   (A>B) ? B : ((A<C) ? C : A)

Typedefs

typedef long SPUC::natural


Detailed Description

Various Defined Constants and Macros.

Author:
Tony Kirke, Copyright(c) 2001

Define Documentation

#define ABS  )     ( (x < 0) ? (-x) : (x))
 

#define BIG   72057594037927936.
 

#define CLIP A,
B,
 )     (A>B) ? B : ((A<C) ? C : A)
 

#define E   2.7182818284590452353602874
 

#define HALFPI   1.57079632679489661923
 

#define HALFSQRT2   .70710678118654752440
 

#define HUGED   1.701411733192644270e38
 

#define ILN2   1.4426950408889634
 

#define LN  )     (log(x))
 

#define LN10   2.30258509299404568401
 

#define LN2   0.69314718055994530941
 

#define LOGE  )     (log(x))
 

#define LOGHUGE   39
 

#define MASK_BIT  )     (1<<n)
 

#define MASK_LOW  )     ((1<<n) - 1)
 

#define MASK_NEG_HI  )     (-1<<(32-n))
 

#define MAX x,
 )     ((x) >= (y) ? (x) : (y))
 

#define MAXINT   32767
 

#define MIN x,
 )     ((x) <= (y) ? (x) : (y))
 

#define MODULO x,
 )     ((x)%(y))
 

#define MXLONG   4294967295
 

#define PI   3.141592653589793238462643
 

#define QUARTPI   0.78539816339744830962
 

#define RADPDEG   0.01745329251994329576
 

#define RTD   57.295781
 

#define SGN  )     ((x) < 0 ? -1 : 1)
 

#define SQR  )     ((x) * (x))
 

#define SQRT2   1.41421356237309504880
 

#define SWAP a,
b,
 )     c = a, a = b, b = c
 

#define TWOPI   6.28318530717958647692
 

#define XSWAP a,
 )     a ^= b, b ^= a, a ^= b
 


Generated on Fri Sep 16 11:05:45 2005 for spuc by  doxygen 1.4.4