* Digital UNIX C 'long double' support questions
@ 1996-09-13 4:00 Al Simons
1996-09-17 4:00 ` John R. Campbell
0 siblings, 1 reply; 4+ messages in thread
From: Al Simons @ 1996-09-13 4:00 UTC (permalink / raw)
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.
We are trying to determine what new applications or classes of
applications will be enabled by providing the greater range and
accuracy of 128-bit long double.
We are also trying to determine what applications are currently using
"long double", even though it is equivalent to "double", and would
break if the definition changes.
Please take a few minutes to consider the following questions, and
send your opinions to me at:
mailto:simons@zk3.dec.com
----
- What kinds of applications need more range and/or
precision than provided by 64-bit "double"?
- Are there any applications currently using the (64-bit) "long
double" type in your shop?
- Can you rebuild if needed?
- Are you aware of any library APIs which use the (64-bit) long
double type?
- If so and the library is yours, can you rebuild it if needed?
- If you know of a library API using long double and it is a third
party library, what is it and what company released it?
- If we support co-existence of 128-bit long double and 64-bit long
double under a command line switch, which should be the default?
- If we support co-existence of 128-bit long double and 64-bit long
double under a command line switch, what would you do for libraries
that you support?
- What other information can you give us that would indicate the
extent to which the long double type (as a 64-bit type) is
currently in use?
- What other information can you give us about the importance of
supporting a 128-bit long double?
Thanks for your input,
Al Simons
Digital UNIX Development Environment
simons@zk3.dec.com
603.881.2187
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital UNIX C 'long double' support questions
@ 1996-09-17 4:00 berc
1996-09-18 4:00 ` Ron Natalie
0 siblings, 1 reply; 4+ messages in thread
From: berc @ 1996-09-17 4:00 UTC (permalink / raw)
To: soup; +Cc: comp.sys.dec.usenet
No, no, no:
or maybe
long long - 64 bit
longer long long - 128 bit
longest long long - 256 bit
longer longer long long - 512 bit
and: longest longer long long - 1024 bit
or maybe
double - 64 bit
double double - 64 bit
double double double - 128 bit
double double double double - 256 bit
double double double double double - 512 bit
and: double bubble toil and trouble - 1024 bit
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital UNIX C 'long double' support questions
1996-09-13 4:00 Al Simons
@ 1996-09-17 4:00 ` John R. Campbell
0 siblings, 0 replies; 4+ messages in thread
From: John R. Campbell @ 1996-09-17 4:00 UTC (permalink / raw)
On Fri, 13 Sep 1996 08:41:53 -0400, Al Simons <simons@zk3.dec.com> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital UNIX C 'long double' support questions
1996-09-17 4:00 Digital UNIX C 'long double' support questions berc
@ 1996-09-18 4:00 ` Ron Natalie
0 siblings, 0 replies; 4+ messages in thread
From: Ron Natalie @ 1996-09-18 4:00 UTC (permalink / raw)
This reminds me of when we were working on the Denelcor HEP
computer and getting ready to write the C compiler. The
HEP had 8, 16, 32, and 64 bit quantities (and this was back
in 1981). Well, it's basic unit was 64, 32 was a partial
word for it. So it was pretty clear we wanted to make
int==long==64. So what do we call the 32 bit things.
I voted for short longs (or long shorts) and others voted
for a new keyword "medium." (We finally settled on _int32).
The HEP was amusing in that the partial word access was quaintly
encoded in the lower 3 bits of the address. While the compiler
handled:
int *x;
short *y;
x = &foo;
y = x;
Doing something like this (which the BSD kernel we were porting
does all over the file system code, naughty, naughty)....
union {
int * x;
short *y;
} p;
p.x = foo;
woo = *p.y;
The assignment into woo would be of an "int" sized thing rather
than a short sized thing.
-Ron
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-09-18 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-17 4:00 Digital UNIX C 'long double' support questions berc
1996-09-18 4:00 ` Ron Natalie
-- strict thread matches above, loose matches on Subject: below --
1996-09-13 4:00 Al Simons
1996-09-17 4:00 ` John R. Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox