diff options
author | Brooks Moses <brooks.moses@codesourcery.com> | 2007-04-30 19:17:59 +0000 |
---|---|---|
committer | Brooks Moses <brooks@gcc.gnu.org> | 2007-04-30 12:17:59 -0700 |
commit | 18452a7da99e0d2b4eca60e820941fc0d1c930a3 (patch) | |
tree | e3bf3bf016695d90ad6f4c85478f7148d7488dbb /gcc/fortran/trans-const.h | |
parent | e4fd22c6d5a014ae055d1ed7499c87f9dbb9a3cd (diff) | |
download | gcc-18452a7da99e0d2b4eca60e820941fc0d1c930a3.zip gcc-18452a7da99e0d2b4eca60e820941fc0d1c930a3.tar.gz gcc-18452a7da99e0d2b4eca60e820941fc0d1c930a3.tar.bz2 |
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
Diffstat (limited to 'gcc/fortran/trans-const.h')
-rw-r--r-- | gcc/fortran/trans-const.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |