This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Implementing real*16 in Fortran


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]