From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,313213915b4878b4 X-Google-Attributes: gid111c93,public From: Joern Amundsen Subject: Re: Alpha/Linux Numerics Please... Date: 2000/02/28 Message-ID: #1/1 X-Deja-AN: 590803384 References: <89c7hl$3g2$1@sloth.swcp.com> X-Complaints-To: usenet@itea.ntnu.no X-Trace: kopp.stud.ntnu.no 951735924 4581 129.241.92.194 (28 Feb 2000 11:05:24 GMT) Organization: Norwegian university of science and technology NNTP-Posting-Date: 28 Feb 2000 11:05:24 GMT Newsgroups: comp.os.linux.alpha 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