diff options
author | Brooks Moses <brooks.moses@codesourcery.com> | 2007-04-30 19:14:04 +0000 |
---|---|---|
committer | Brooks Moses <brooks@gcc.gnu.org> | 2007-04-30 12:14:04 -0700 |
commit | e4fd22c6d5a014ae055d1ed7499c87f9dbb9a3cd (patch) | |
tree | 6479ca4b9aae9944979b25e103b6a70c19c8e7fe /gcc/double-int.h | |
parent | 0a21c1d2bae57035c0f46cca64e85f228c6b4388 (diff) | |
download | gcc-e4fd22c6d5a014ae055d1ed7499c87f9dbb9a3cd.zip gcc-e4fd22c6d5a014ae055d1ed7499c87f9dbb9a3cd.tar.gz gcc-e4fd22c6d5a014ae055d1ed7499c87f9dbb9a3cd.tar.bz2 |
double-int.c (mpz_set_double_int): Moved from tree-ssa-loop-niter.c.
* double-int.c (mpz_set_double_int): Moved from
tree-ssa-loop-niter.c.
(mpz_get_double_int): Likewise; also, add option to wrap
out-of-range integers.
* double-int.h: New prototypes for above.
* tree.c (get_static_type_bounds): Moved from
tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
TYPE_MAX_VALUE if they exist..
* tree.h: New prototype for above.
* tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
get_type_bounds calls.
(mpz_set_double_int): Move to double-int.c.
(get_type_bounds): Move to tree.c, rename to
get_static_type_bounds.
(mpz_to_double_int): Move to double-int.c, rename to
mpz_get_double_int.
From-SVN: r124304
Diffstat (limited to 'gcc/double-int.h')
-rw-r--r-- | gcc/double-int.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/double-int.h b/gcc/double-int.h index 807166b..33641bd 100644 --- a/gcc/double-int.h +++ b/gcc/double-int.h @@ -21,6 +21,9 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #ifndef DOUBLE_INT_H #define DOUBLE_INT_H +#include <gmp.h> +#include "coretypes.h" + /* A large integer is currently represented as a pair of HOST_WIDE_INTs. It therefore represents a number with precision of 2 * HOST_BITS_PER_WIDE_INT bits (it is however possible that the @@ -174,4 +177,10 @@ double_int_equal_p (double_int cst1, double_int cst2) return cst1.low == cst2.low && cst1.high == cst2.high; } +/* Conversion to and from GMP integer representations. */ + +void mpz_set_double_int (mpz_t, double_int, bool); +double_int mpz_get_double_int (tree, mpz_t, bool); + + #endif /* DOUBLE_INT_H */ |