Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Joern Amundsen <joern@sif.itea.ntnu.no>
Subject: Re: Alpha/Linux Numerics Please...
Date: 2000/02/28	[thread overview]
Message-ID: <oypaeklwqey.fsf@sif.itea.ntnu.no> (raw)
In-Reply-To: 89c7hl$3g2$1@sloth.swcp.com

reg@orion.dwf.com () writes:
> 
> As far as I can tell, there is nothing like the sun '-r8' switch on either
> the fort (Dec/Compaq Fortran) or g77 compilers to default to 64 bit floats,
> and 128bit doubles.

Correct regarding g77, wrong regarding Compaq Fortran (fort). Compaq
Fortran has -r8 and -r16. g77 supports real*4 and real*8 (not
real*16), though.

> I SUSPECT that there is a way to get to 128bit (16byte) 'long double'
> arithmetic in both C and Fortran, but the simple guess of 'long double'
> with gcc still produced an 8 bit size.  
> Any thoughts here?  

It seems long double is nyi (defaults to double) with C, but Fortran
implements real*16 (and the -r16 switch). A simple check also verifies
that

	real*16 x(2)
	write(*,*) loc(x(2)) - loc(x(1))

returns 16.

> 
> -- 
>                                         Reg.Clemens
>                                         reg@dwf.com

-- 

  Joern Amundsen (Jorn.Amundsen@itea.ntnu.no)
  University Administration, ITEA
  Norwegian University of Science and Technology, 7491 Trondheim, Norway 



  reply	other threads:[~2000-02-28  5:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-27  5:00 Alpha/Linux Numerics Please reg
2000-02-28  5:00 ` Joern Amundsen [this message]
2000-02-28  5:00 ` Andrei A. Dergatchev
2000-03-02  5:00 ` Ryan C. Price
2000-03-02  5:00   ` Greg Lindahl
2000-03-06  5:00     ` Ryan C. Price
2000-03-02  5:00   ` Timo Biesenbach
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox