diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-25 05:49:31 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-25 05:49:31 +0000 |
commit | abe9b8fe3bba6eeaa83f40f2a72ced6ff1020e58 (patch) | |
tree | 3a8fe60232cfdfa19c991a924860ac2eabd4d60d /gcc/graphite-ppl.h | |
parent | 6894bbe64f107255663b0e2514f3a8b778174f2b (diff) | |
download | gcc-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.h | 11 |
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 |