Detailed Description
Portable defintions.
Definition in file portab.h.
#include <limits.h>
#include <math.h>
#include <float.h>
Go to the source code of this file.
Macros | |
#define | EPSILON 1e-06 |
#define | TRUE 1 |
#define | FALSE 0 |
#define | SUCCESS 0 |
#define | FAILURE (-1) |
#define | Max(a, b) (((a) >= (b)) ? (a) : (b)) |
#define | Min(a, b) (((a) <= (b)) ? (a) : (b)) |
#define | EPS_ZERO (DBL_EPSILON * 1e4) |
#define | Fsgn(x) ((((x) > -EPS_ZERO) && ((x) < EPS_ZERO)) ? 0 : (((x) < 0.0) ? -1 : 1)) |
#define | EQ(a, b) (fabs((a) - (b)) <= EPS_ZERO) |
#define | NE(a, b) (fabs((a) - (b)) > EPS_ZERO) |
#define | LT(a, b) (((a) - (b)) < -EPS_ZERO) |
#define | LE(a, b) (((a) - (b)) < EPS_ZERO) |
#define | GT(a, b) (((a) - (b)) > EPS_ZERO) |
#define | GE(a, b) (((a) - (b)) > -EPS_ZERO) |
#define | does_not_return |
#define | inline |
#define | DIRSEP "/" |
Macro Definition Documentation
◆ EPSILON
◆ TRUE
◆ FALSE
◆ SUCCESS
#define SUCCESS 0 |
Definition at line 41 of file portab.h.
Referenced by get_arguments(), graph_load(), open_file(), SCIPsetModifiedDefaultSettingsIpopt(), and start_section().
◆ FAILURE
#define FAILURE (-1) |
Definition at line 44 of file portab.h.
Referenced by get_arguments(), graph_load(), open_file(), and start_section().
◆ Max
◆ Min
Definition at line 51 of file portab.h.
Referenced by graph_mincut_exec().
◆ EPS_ZERO
◆ Fsgn
◆ EQ
Definition at line 62 of file portab.h.
Referenced by reduce_simple(), SCIP_DECL_SORTPTRCOMP(), and SCIPStpValidateSol().
◆ NE
◆ LT
Definition at line 64 of file portab.h.
Referenced by getlecloseterms(), nearest(), nearestX(), and SCIP_DECL_SORTPTRCOMP().
◆ LE
Definition at line 65 of file portab.h.
Referenced by getlecloseterms().
◆ GT
Definition at line 66 of file portab.h.
Referenced by getlecloseterms(), graph_voronoiExtend(), heap_add(), nearest(), and nearestX().
◆ GE
◆ does_not_return
◆ inline
◆ DIRSEP
#define DIRSEP "/" |
Definition at line 79 of file portab.h.
Referenced by graph_load().