🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #6506

Re: Precision of floating point multiply

#6506
From: Nick Maclaren
Date: Mon, 29 Sep 2003 15:21
26 lines
2115 bytes
In article <xrXdb.631209$Ho3.121609@sccrnsc03>,
"Glen Herrmannsfeldt" <gah@ugcs.caltech.edu> writes:
|> 
|> I thought it was somewhere in the thread, but maybe not.
|> 
|> For  C=C+A*B, single precision A, B, and double precision C:
|> 
|>    LE 0,A   load single precision A
|>    ME 0,B   Multiply by B generating double product in float register 0
|>    SDR 2,2   Clear double float register 2
|>    LER 2,0    copy single value from reg 0 to reg 2
|>    AD 2,C     add double C
|>    STD 2,C    store double into C
|> 
|> The SDR and LER are used to clear the low half of the product.

If my memory is right, those two are NOT done as part of the
multiplication, but are the conversion from single to double
precision.  I.e. you would also get them in:

    C=C+A, single precision A, and double precision C.


Regards,
Nick Maclaren.
Technical Details
Message-ID: <bl9ild$abv$1@pegasus.csx.cam.ac.uk>
Path: arc1-ca.pugleaf.net!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!nmm1
References: <dG4db.598668$uu5.97984@sccrnsc04> <iu6fnvch0g09q9f335tt89ogfcj5jm2ovh@4ax.com> <kmRdb.626671$YN5.452649@sccrnsc01> <bl8q1g$iv7$1@pegasus.csx.cam.ac.uk> <xrXdb.631209$Ho3.121609@sccrnsc03>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd4af,7830916812112af0
X-Google-Attributes: gidfd4af,public
X-Google-Thread: fd705,7830916812112af0
X-Google-Attributes: gidfd705,public
X-Google-Thread: 102b75,7830916812112af0
X-Google-Attributes: gid102b75,public
X-Google-Thread: 1094ba,7830916812112af0
X-Google-Attributes: gid1094ba,public
X-Google-ArrivalTime: 2003-09-29 08:21:21 PST
Path: arc1-ca.pugleaf.net!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!nmm1
From: nmm1@cus.cam.ac.uk (Nick Maclaren)
Newsgroups: comp.lang.fortran,comp.arch,bit.listserv.ibm-main,alt.folklore.computers
Subject: Re: Precision of floating point multiply
Date: 29 Sep 2003 15:21:17 GMT
Organization: University of Cambridge, England
Lines: 27
Message-ID: <bl9ild$abv$1@pegasus.csx.cam.ac.uk>
References: <dG4db.598668$uu5.97984@sccrnsc04> <iu6fnvch0g09q9f335tt89ogfcj5jm2ovh@4ax.com> <kmRdb.626671$YN5.452649@sccrnsc01> <bl8q1g$iv7$1@pegasus.csx.cam.ac.uk> <xrXdb.631209$Ho3.121609@sccrnsc03>
NNTP-Posting-Host: virgo.cus.cam.ac.uk
Originator: nmm1@virgo.cus.cam.ac.uk