From 18452a7da99e0d2b4eca60e820941fc0d1c930a3 Mon Sep 17 00:00:00 2001 From: Brooks Moses Date: Mon, 30 Apr 2007 19:17:59 +0000 Subject: trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int. * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int. (gfc_conv_tree_to_mpz): New function. (gfc_conv_mpfr_to_tree): Use real_from_mpfr. (gfc_conv_tree_to_mpfr): New function. * trans-const.h: (gfc_conv_tree_to_mpz): New prototype. (gfc_conv_tree_to_mpfr): New prototype. From-SVN: r124305 --- gcc/fortran/trans-const.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/fortran/trans-const.h') diff --git a/gcc/fortran/trans-const.h b/gcc/fortran/trans-const.h index 2b07116..1f4157e 100644 --- a/gcc/fortran/trans-const.h +++ b/gcc/fortran/trans-const.h @@ -20,11 +20,13 @@ along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -/* Returns an INT_CST. */ +/* Converts between INT_CST and GMP integer representations. */ tree gfc_conv_mpz_to_tree (mpz_t, int); +void gfc_conv_tree_to_mpz (mpz_t, tree); -/* Returns a REAL_CST. */ +/* Converts between REAL_CST and MPFR floating-point representations. */ tree gfc_conv_mpfr_to_tree (mpfr_t, int); +void gfc_conv_tree_to_mpfr (mpfr_ptr, tree); /* Build a tree for a constant. Must be an EXPR_CONSTANT gfc_expr. For CHARACTER literal constants, the caller still has to set the -- cgit v1.1