summaryrefslogtreecommitdiff
path: root/gcc/graphite-ppl.h
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-25 05:49:31 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-25 05:49:31 +0000
commitabe9b8fe3bba6eeaa83f40f2a72ced6ff1020e58 (patch)
tree3a8fe60232cfdfa19c991a924860ac2eabd4d60d /gcc/graphite-ppl.h
parent6894bbe64f107255663b0e2514f3a8b778174f2b (diff)
downloadgcc-abe9b8fe3bba6eeaa83f40f2a72ced6ff1020e58.tar.gz
2011-07-25 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 176732 using svnmerge. 2011-07-25 Basile Starynkevitch <basile@starynkevitch.net> * gcc/melt-build.tpl (warmelt-upgrade-translator, meltrun-generate): Use $(WARMELT_LAST). * gcc/melt-built.mk: Regenerate. * gcc/Makefile.in (upgrade-warmelt): Depend upon $(WARMELT_LAST). Merged with trunk. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@176733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-ppl.h')
-rw-r--r--gcc/graphite-ppl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/graphite-ppl.h b/gcc/graphite-ppl.h
index 49bde618f47..5820e19927d 100644
--- a/gcc/graphite-ppl.h
+++ b/gcc/graphite-ppl.h
@@ -124,6 +124,17 @@ ppl_set_coef_tree (ppl_Linear_Expression_t e, ppl_dimension_type i, tree x)
mpz_clear (v);
}
+/* Sets RES to the min of V1 and V2. */
+
+static inline void
+value_min (mpz_t res, mpz_t v1, mpz_t v2)
+{
+ if (mpz_cmp (v1, v2) < 0)
+ mpz_set (res, v1);
+ else
+ mpz_set (res, v2);
+}
+
/* Sets RES to the max of V1 and V2. */
static inline void