lexmin.cc: move selection of gbr solver to options.c
[barvinok.git] / polysign_cddf.cc
blob7304c3ef3984abbbff55c99a23370a99a25bf4b1
1 #define DD_LPType ddf_LPType
2 #define DD_CreateLPData ddf_CreateLPData
3 #define DD_LPObjectiveType ddf_LPObjectiveType
4 #define DD_rowrange ddf_rowrange
5 #define DD_colrange ddf_colrange
6 #define DD_Rational ddf_Rational
7 #define DD_FALSE ddf_FALSE
8 #define DD_set_si ddf_set_si
9 #define DD_neg ddf_neg
10 #define DD_ErrorType ddf_ErrorType
11 #define DD_DualSimplex ddf_DualSimplex
12 #define DD_LPSolve ddf_LPSolve
13 #define DD_NoError ddf_NoError
14 #define DD_Optimal ddf_Optimal
15 #define DD_DualInconsistent ddf_DualInconsistent
16 #define DD_LPmin ddf_LPmin
17 #define DD_Inconsistent ddf_Inconsistent
18 #define DD_FreeLPData ddf_FreeLPData
19 #define DD_LPmax ddf_LPmax
20 #define DD_int_sign(sign,obj,val) do { \
21 if (val[0] < -0.5) \
22 sign = -1; \
23 else if (val[0] > 0.5) \
24 sign = 1; \
25 else \
26 sign = 0; \
27 } while (0)
29 #define DD_set_z(a,b) a[0] = VALUE_TO_DOUBLE(b)
31 #define cdd_polyhedron_affine_sign cddf_polyhedron_affine_sign
32 #define DD_rat_sign(sign,obj,val) do { \
33 if (obj == DD_LPmin) \
34 val[0] -= ddf_almostzero; \
35 else \
36 val[0] += ddf_almostzero; \
37 sign = ddf_sgn(val); \
38 } while (0)
40 #include "polysign_cdd_template.cc"