Now it is possible to use UINT data type instead of INTMAX
authorThomas Bersch <bersch@ipd.info.uni-karlsruhe.de>
Mon, 2 Nov 2009 14:54:48 +0000 (14:54 +0000)
committerThomas Bersch <bersch@ipd.info.uni-karlsruhe.de>
Mon, 2 Nov 2009 14:54:48 +0000 (14:54 +0000)
[r26707]

pbqp_t.h

index 6d9ed67..ed28e6f 100644 (file)
--- a/pbqp_t.h
+++ b/pbqp_t.h
 #define KAPS_DUMP 0
 #define KAPS_ENABLE_VECTOR_NAMES 0
 #define KAPS_STATISTIC 0
-
-typedef intmax_t num;
+#define KAPS_TIMING 0
+#define KAPS_USE_UNSIGNED 0
+
+#if KAPS_USE_UNSIGNED
+       typedef unsigned num;
+       static const num INF_COSTS = UINT_MAX;
+#else
+       typedef intmax_t num;
+       static const num INF_COSTS = INTMAX_MAX;
+#endif
 
 #include "matrix_t.h"
 #include "vector_t.h"
@@ -20,8 +28,6 @@ typedef struct pbqp_edge pbqp_edge;
 typedef struct pbqp_node pbqp_node;
 typedef struct pbqp      pbqp;
 
-static const num INF_COSTS = INTMAX_MAX;
-
 struct pbqp {
        struct obstack obstack;            /* Obstack. */
        num            solution;           /* Computed solution. */