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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c7ea1cb7a2beb2ee X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: Disallowing Pre-Defined Operations Date: 2000/04/15 Message-ID: <38F8ACAA.C773C6FF@quadruscorp.com>#1/1 X-Deja-AN: 611527223 Content-Transfer-Encoding: 7bit References: <8a9eeg$qtv$1@newpoisson.nosc.mil> <38D2E598.262D1CD5@erols.com> <8b0pbg$aph$1@nnrp1.deja.com> <38D9A2E8.F720768@erols.com> <8bcalg$pmb$1@nnrp1.deja.com> <38EBDD10.65444727@earthlink.net> <38EC160F.E2A13F44@quadruscorp.com> <8cic1h$195$1@nnrp1.deja.com> <38ED3145.BE3CEC68@quadruscorp.com> <38EE18A8.FD5F1A05@quadruscorp.com> <8ckre7$o2p2@ftp.kvaerner.com> <38EE267E.12466F1E@quadruscorp.com> <38F81183.D8FA89C1@icon.fi> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 15 Apr 2000 14:55:10 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-15T14:55:10+00:00 List-Id: Niklas Holsti wrote: > > The Analog Devices ADSP-21020 digital signal processor can be put in > a "saturation" mode in which the arithmetic operations are saturating > rather than overflowing. I suppose this holds for the newer "SHARC" > series too. > Cool. I'll put it on my list of things to check out. > Since the 21020 is a 32-bit, floating-point DSP, this could be a nice > platform for saturation arithmetic in demanding real-time systems. > There are lots of uses for saturation. One problem though is that you might need to support user-defined ranges where, AFAIK, there isn't going to be hardware support. (Maybe someone could come up with some special range registers on a processor?) For instance, if you have a 10 bit D/A converter, any math you do to drive this you want to saturate within those 10 bits. 16 bit integer math that saturates isn't likely to help you much there. So in the end, you still need some compiler checking capabilities. Unless you know of some hardware tricks being invented recently? Thanks for the tip on the DSP. MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "I'd trade it all for just a little more" -- Charles Montgomery Burns, [4F10] ======================================================================