bpm_defs.h

00001 
00054 #ifndef BPMDEFS_H__
00055 #define BPMDEFS_H__
00056 
00057 /* -----------------------------------------------------------------------------
00058    includes
00059    -------------------------------------------------------------------------- */
00060 
00061 
00062 /* -----------------------------------------------------------------------------
00063    macro definitions
00064    -------------------------------------------------------------------------- */
00065 
00066 /* #define BUILD_DLL */
00067 #if defined ( DLL_EXPORT ) && ( defined ( _WIN32 ) || defined ( __WIN32__ ) )
00068 #  if defined BUILD_DLL
00069 #    define EXTERN __declspec( dllexport ) 
00070 #  else 
00071 #    define EXTERN __declspec( dllimport )
00072 #  endif
00073 #else
00074 #  define EXTERN extern
00075 #endif
00076 
00077 #ifndef _GNU_SOURCE
00078 #define _GNU_SOURCE /* needed for some functions (e.g. like 'round') */
00079 #endif
00080 
00081 #ifndef TRUE
00082 #  define TRUE  (1==1)
00083 #endif 
00084 #ifndef FALSE
00085 #  define FALSE (0==1)
00086 #endif 
00087 
00088 #define SQR( a ) ( (a) * (a) )
00089 #define ABS( a ) ( (a) < 0 ? -(a) : (a) )
00090 #define SWAP( a, b ) tempr=(a);(a)=(b);(b)=tempr
00091 
00092 #ifdef PI
00093 # undef PI
00094 #endif 
00095 #define PI 3.14159265358979323846264338328 /* echo "scale=100;4*a(1)"|bc -l  ;) */
00096 
00097 #define BPM_SUCCESS  0
00098 #define BPM_FAILURE  1
00099 
00100 #define Re 0
00101 #define Im 1
00102 
00103 /* -----------------------------------------------------------------------------
00104    typedefs, enums and other declarations
00105    -------------------------------------------------------------------------- */
00106 
00107 /* -----------------------------------------------------------------------------
00108    function prototypes and declarations
00109    -------------------------------------------------------------------------- */
00110 
00111 #endif /* #ifndef BPMDEFS_H__ */
00112 
00113 /* ================================ end of file ============================= */
00114 

Generated on Fri Nov 9 21:17:10 2007 for libbpm by  doxygen 1.5.1