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-28 04:35:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!enews.sgi.com!tdsnet-transit!newspeer.tds.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Quality systems (Was: Using Ada for device drivers? (Was: the Date: 28 May 2003 06:35:04 -0500 Organization: Berbee Information Networks Corporation Message-ID: 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> In article <3ED49CA6.1020709@noplace.com>, Marin David Condic writes: > Saturated math on *any* bounds? How would you do that? It would mean > having to somehow include the bounds on every math operation. ("add X, > Y, LB, UB" or something similar) It would be cool if you could do that, > but there would be obvious speed penalties and difficult instruction > sets for compilers to target. > > MDC > > Dale Stanbrough wrote: >> Marin David Condic wrote: >> >> >> 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. Presuming the ability to add and subtract to a storage location (I don't know the Altivec instructions) would it not suffice to say that "fetch" is the only operation for which the bounds must be provided ?