Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* 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; 2+ 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] 2+ messages in thread

* Re: Digital UNIX C 'long double' support questions
  1996-09-13  4:00 Digital UNIX C 'long double' support questions Al Simons
@ 1996-09-17  4:00 ` John R. Campbell
  0 siblings, 0 replies; 2+ 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] 2+ messages in thread

end of thread, other threads:[~1996-09-17  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-13  4:00 Digital UNIX C 'long double' support questions 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