home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!cwi.nl!dik
- From: dik@cwi.nl (Dik T. Winter)
- Newsgroups: comp.programming
- Subject: Re: floating point routines with double precision
- Message-ID: <6760@charon.cwi.nl>
- Date: 24 Jul 92 00:33:23 GMT
- References: <54561@mentor.cc.purdue.edu> <1992Jul22.120724.3466@druid.uucp> <54944@mentor.cc.purdue.edu>
- Sender: news@cwi.nl
- Organization: CWI, Amsterdam
- Lines: 37
-
- In article <54944@mentor.cc.purdue.edu> hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
- > In article <1992Jul22.120724.3466@druid.uucp> darcy@druid.uucp (D'Arcy J.M. Cain) writes:
- > >hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
- > >>Use assembler for you particular machine if you want any speed. Even
- > >>setting it up for the compiler will be a major headache, and you will
- > >>have just as many problems with object size.
- > >Here is how I set up my compiler to generate machine code for a floating
- > >point operation:
- Interesting responses, but not to the point. The original question
- explicitly stated that he had *no* compiler, and wanted to hand-translate
- the code to assembler!
- >
- > It depends on what you call double precision. The IEEE standard
- > double precision probably should be called single precision, and
- > what it calls single precision should be called half precision.
- Here, Herman, your 205 indoctrination shows up. In the IBM world 32 bit
- FP is single precision since a very long time (1966?). And what you
- call double precision they call quad precision. It is only CDC and Cray
- where single precision is 60/64 bits and double precision 120/128 bits.
- (Oh, well, perhaps a few more, Burroughs I think, and perhaps some others.)
- >
- > Now I was answering the question assuming that more than the designed
- > precision is needed. The routines are not difficult for a human to
- > design, but almost hopeless for a compiler. Anyone who writes such
- > a procedure for a machine which has forced normalization will curse
- > the designers.
- Well, as the machine of the original requestor has no floating-point
- hardware, this point is moot. Moreover, it is not the compiler that
- suddenly comes up with some code to do double-precision, it is put in
- the compiler by the compiler-writer, e.g. hand-coded. He may have done
- a poor job of course (as some code sequences for the 205 show, but that one
- had an extremely bad Fortran compiler; past tense because the one I used
- has been decommissioned more than a year ago).
- --
- dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland
- home: bovenover 215, 1025 jn amsterdam, nederland
- dik@cwi.nl
-