From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-27 05:28:17 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!wn14feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!news.stealth.net news.stealth.net!news.stealth.net!news.cse.sc.edu!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: Quality systems (Was: Using Ada for device drivers? (Was: the Ada mandate, and why it collapsed and died)) References: <3ec4b1c9$1@news.wineasy.se> <9fa75d42.0305161748.1735fc32@posting.google.com> <4W%xa.28765$cK5.11964@nwrdny02.gnilink.net> <1053353256.804734@master.nyc.kbcfp.com> <3ECFF541.1010705@attbi.com> <3ED0B820.5050603@noplace.com> <3ED2096F.3020800@noplace.com> <3ED353BE.40605@noplace.com> User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X) Message-ID: Date: Tue, 27 May 2003 12:26:34 GMT NNTP-Posting-Host: 144.132.47.50 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1054038394 144.132.47.50 (Tue, 27 May 2003 22:26:34 EST) NNTP-Posting-Date: Tue, 27 May 2003 22:26:34 EST Organization: BigPond Internet Services (http://www.bigpond.net.au) Xref: archiver1.google.com comp.lang.ada:37832 Date: 2003-05-27T12:26:34+00:00 List-Id: Marin David Condic wrote: > I don't know of any hardware that would do this for either floating > point or integer numbers, so I'd suspect it would not be practical to do > anything but implement it in software. You'd probably want to do > whatever it is you do to check for an overflow on a subtype, but instead > of raising an exception, you plug it with the max value and continue to run. I'm pretty sure that the PowerPC chip's Altivec instruction has this. yes, google says... http://e-www.motorola.com/brdata/PDFDB/docs/ALTIVECPIM.pdf which indicates saturated maths is for integral types. Dale