Xref: utzoo comp.lang.fortran:4201 comp.lang.c:34343 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!gatech!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!charon!dik From: dik@cwi.nl (Dik T. Winter) Newsgroups: comp.lang.fortran,comp.lang.c Subject: Re: Fortran vs. C for numerical work (SUMMARY) Message-ID: <2630@charon.cwi.nl> Date: 29 Nov 90 15:38:03 GMT References: <7200@lanl.gov> <2392:Nov2902:59:0590@kramden.acf.nyu.edu> <1990Nov29.040910.7400@kithrup.COM> Sender: news@cwi.nl Followup-To: comp.lang.fortran Organization: CWI, Amsterdam Lines: 18 In article <1990Nov29.040910.7400@kithrup.COM> sef@kithrup.COM (Sean Eric Fagan) writes: > In article <2392:Nov2902:59:0590@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: > >(I > >don't like this situation; converting to floating point just to multiply > >quickly on a Cray seems rather silly.) > > Uhm... you don't have to, I don't think. A Cyber had only one type of > multiply instruction, but if the exponent were 0, it did an integer > multiplication. I believe Cray's do the same thing. > No. The Cybers give indeed the lower half of the product of two integers (and the other multiply instruction gives the upper part, although that is not documented). The Cray returns the upper part if the two exponents are zero. But the Cray has a 24x24->24 bit integer multiply and as a compiler option you can use 24 bit integers. -- dik t. winter, cwi, amsterdam, nederland dik@cwi.nl