This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Arbitrary precision representation for numeric constants?
- To: peter at gerwinski dot de (Peter Gerwinski)
- Subject: Re: Arbitrary precision representation for numeric constants?
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Mon, 18 Oct 1999 17:04:31 +0100 (BST)
- Cc: gcc at gcc dot gnu dot org
> in `fold-const.c' there is the following comment:
>
> /*@@ This file should be rewritten to use an arbitrary precision
> @@ representation for "struct tree_int_cst" and "struct tree_real_cst".
> @@ Perhaps the routines could also be used for bc/dc, and made a lib.
> @@ The routines that translate from the ap rep should
> @@ warn if precision et. al. is lost.
> @@ This would also make life easier when this technology is used
> @@ for cross-compilers. */
>
> Is there anyone actually working on this (or planning to work on this)?
At least for floating point values this comment is out of date -
the REAL_ARITHMENTIC stuff in gcc is actually better than arbitrary
precision, because it can do floating point operations the way the
target system does.