00001
00028 #ifndef HFIRE_H
00029 #define HFIRE_H
00030
00031 #include <stdlib.h>
00032
00033 #include "Err.h"
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00042
00043
00044 #define HFIRE_EPSILON (1.0e-6)
00045
00046
00047 #define HFIRE_FRACT_ZERO (HFIRE_EPSILON)
00048
00049
00050 #define HFIRE_DEFAULT_STATUS_LINE_LENGTH (32)
00051
00052 #endif
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
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
00099
00100
00101
00102 #endif HFIRE_H