This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Implementing real*16 in Fortran
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Erik Schnetter <schnetter at uni-tuebingen dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 3 Aug 2003 20:54:39 +0200
- Subject: Re: Implementing real*16 in Fortran
- References: <200308031317.33934.schnetter@uni-tuebingen.de>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Aug 03, 2003 at 01:17:19PM +0200, Erik Schnetter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I want to implement real*16 in Fortran. For that I seem to need two
> things:
>
> (1) For run time libraries, I need a corresponding C type. I think the
> best thing would be to use long double for that, but it has to have a
> sizeof of 16. On i386, the option -m128bit-long-double does just this.
> Is there a way to declare a type that does not need this option? I
I don't think IA-32/IA-64/amd64 TFmode (ieee_extended_128)
is what you're looking for. That's still the same thing as XFmode, but
padded to 16 bytes.
Doesn't Fortran mandate IEEE quad format (TFmode on sparc and a couple
of other platforms), ie. 1 bit sign, 15 bits exponent, 112+1 bits of
mantissa?
Jakub