Main Page   Compound List   File List   Compound Members   File Members  

HFire.h

Go to the documentation of this file.
00001 
00028 #ifndef HFIRE_H
00029 #define HFIRE_H
00030     
00031 #include <stdlib.h>
00032 
00033 #include "Err.h"
00034 
00035 /*
00036  *********************************************************
00037  * DEFINES, ENUMS
00038  *********************************************************
00039  */
00040 
00041 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00042 
00043 /* floating point value defining threshold for equality */
00044 #define HFIRE_EPSILON                                       (1.0e-6)
00045 
00046 /* floating point values defining zero fraction */
00047 #define HFIRE_FRACT_ZERO                                    (HFIRE_EPSILON)
00048 
00049 /* size in characters of default status string */
00050 #define HFIRE_DEFAULT_STATUS_LINE_LENGTH                    (32)
00051 
00052 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00053     
00054 /*
00055  *********************************************************
00056  * STRUCTS, TYPEDEFS
00057  *********************************************************
00058  */
00059  
00060 /*
00061  *********************************************************
00062  * MACROS
00063  *********************************************************
00064  */
00065  
00069 #define HFIRE_EQUAL(a,b)                                    (fabs((a) - (b)) < (HFIRE_EPSILON))
00070 
00074 #define HFIRE_IS_ZERO(a)                                    (fabs(a) < (HFIRE_EPSILON))
00075 
00079 #define HFIRE_LT_ZERO(a)                                    ((a) < (HFIRE_EPSILON))
00080 
00084 #define HFIRE_GT_ZERO(a)                                    ((a) > (HFIRE_EPSILON))
00085 
00089 #define HFIRE_MIN(x, y)                                     (((x) < (y)) ? (x) : (y))
00090 
00094 #define HFIRE_MAX(x, y)                                     (((x) > (y)) ? (x) : (y))
00095 
00096 /*
00097  *********************************************************
00098  * PUBLIC FUNCTIONS
00099  *********************************************************
00100  */ 
00101 
00102 #endif HFIRE_H  /* end of HFire.h */

Generated at Fri Jun 22 00:46:51 2001 for HFire by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000