From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,53737152136b2afe X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,53737152136b2afe X-Google-Attributes: gidfee84,public From: campbejr@phu989.mms.sbphrd.com (John R. Campbell) Subject: Re: Digital UNIX C 'long double' support questions Date: 1996/09/17 Message-ID: #1/1 X-Deja-AN: 181113811 references: <32395691.ABD@zk3.dec.com> organization: SmithKline Beecham Pharmaceuticals Research & Development reply-to: soup@kd3bj.ampr.org newsgroups: comp.unix.osf.osf1,comp.sys.dec On Fri, 13 Sep 1996 08:41:53 -0400, Al Simons wrote: >Digital has been asked to fully support a 128-bit long-double datatype >in C and C++ on Digital UNIX, as it does currently with the REAL*16 >type in FORTRAN. > >The current C and C++ compilers for Digital UNIX implement the ANSI C >type "long double" as a synonym for type "double", i.e., a 64-bit >type. Because of this, we face some decisions around binary >compatibility, and are looking for input. Have you considered using the currently (bizarre) mechanism like "long long" for a 64 bit integer, so you'd have a "double double" (how's that for a suggestion). I _had_ suggested (over a year ago) in comp.lang.c that we use more interesting adjectives for these excessive sizes. I _had_ suggested very long - 64 bit really long - 128 bit extremely long - 256 bit incredibly long - 512 bit and: ludicrously long - 1024 bit This makes extending the "double" more interesting, to wit: double - 64 bit long double - 64 bit really long double - 128 bit extremely long double - 256 bit incredibly long double - 512 bit and: ludicrously long double - 1024 bit _That_ scheme would last a while, wouldn't it? (Maybe I should've cross-posted this to rec.humor.funny...) Seriously, I'm not sure I can understand the requirement for so much precision since we're really most interested in enhancing the "range" (magnitude) ove the actual precision. If I recall aright back in my GeoPhysical processing days, IBM's 32bit floating point number just barely fell short of being useful for seismic trace analysis while the 36bit FP of the 1100 was adequate and the 60bit FP of the Cray-1 was way too much. (especially when doing 3D FFTs). _I'd_ be curious to know what kind of application requires this extreme level of precision... ...but that's my curious streak. -- John R. Campbell, Speaker to Machines, Resident Heckler soup@jtan.com "As a SysAdmin, yes, I CAN read your e-mail, but I DON'T get that bored!"-me Disclaimer: I'm just a consultant at the bottom of the food chain, so, if you're thinking I speak for anyone but myself, you must have more lawyers than sense.