From 8b9dfd55517c9564d90a68bd24d2bd215558f2f7 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 9 Nov 2013 22:39:55 +0100 Subject: [PATCH] add isl_int_abs_cmp We will need this in the next commit. Signed-off-by: Sven Verdoolaege --- isl_int_gmp.h | 1 + isl_int_imath.h | 1 + 2 files changed, 2 insertions(+) diff --git a/isl_int_gmp.h b/isl_int_gmp.h index 263b32c6..08f2857b 100644 --- a/isl_int_gmp.h +++ b/isl_int_gmp.h @@ -59,6 +59,7 @@ typedef mpz_t isl_int; #define isl_int_le(i,j) (mpz_cmp(i,j) <= 0) #define isl_int_gt(i,j) (mpz_cmp(i,j) > 0) #define isl_int_ge(i,j) (mpz_cmp(i,j) >= 0) +#define isl_int_abs_cmp(i,j) mpz_cmpabs(i,j) #define isl_int_abs_eq(i,j) (mpz_cmpabs(i,j) == 0) #define isl_int_abs_ne(i,j) (mpz_cmpabs(i,j) != 0) #define isl_int_abs_lt(i,j) (mpz_cmpabs(i,j) < 0) diff --git a/isl_int_imath.h b/isl_int_imath.h index 523bca83..e5b7186b 100644 --- a/isl_int_imath.h +++ b/isl_int_imath.h @@ -59,6 +59,7 @@ typedef mp_int isl_int; #define isl_int_le(i,j) (impz_cmp(i,j) <= 0) #define isl_int_gt(i,j) (impz_cmp(i,j) > 0) #define isl_int_ge(i,j) (impz_cmp(i,j) >= 0) +#define isl_int_abs_cmp(i,j) impz_cmpabs(i,j) #define isl_int_abs_eq(i,j) (impz_cmpabs(i,j) == 0) #define isl_int_abs_ne(i,j) (impz_cmpabs(i,j) != 0) #define isl_int_abs_lt(i,j) (impz_cmpabs(i,j) < 0) -- 2.11.4.GIT