fortran to C converter

Henry Spencer henry at utzoo.uucp
Tue Apr 25 03:27:47 AEST 1989


In article <12247 at lanl.gov> jlg at lanl.gov (Jim Giles) writes:
>On the Cray, doubles have 28 digits of precision, but it takes 50 (that's
>right - FIFTY) time as long to compute with doubles as with singles.  That
>doesn't even include the fact that doubles don't vectorize!  Single precision
>carries 14 digits of precision and is adequate for most computation.  The
>use of double should be for very rare cases in which single precision isn't
>sufficient.

Given the pervasive nature of double in C code, sounds like Cray made a bad
decision (or an interim one).  The right way to do this is to make float and
double synonymous (which is legal) and use ANSI C's "long double" for the
super-precise type.
-- 
Mars in 1980s:  USSR, 2 tries, |     Henry Spencer at U of Toronto Zoology
2 failures; USA, 0 tries.      | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list