From: Thomas Bersch Date: Mon, 2 Nov 2009 14:54:48 +0000 (+0000) Subject: Now it is possible to use UINT data type instead of INTMAX X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ca2ff2b33005c39b8f8b0b9ee9c35ef082619225;p=libfirm Now it is possible to use UINT data type instead of INTMAX [r26707] --- diff --git a/pbqp_t.h b/pbqp_t.h index 6d9ed67e4..ed28e6fec 100644 --- a/pbqp_t.h +++ b/pbqp_t.h @@ -10,8 +10,16 @@ #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. */