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-30 09:03:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!in.100proofnews.com!in.100proofnews.com!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Saturated Math Date: 30 May 2003 12:03:40 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <3ECFF541.1010705@attbi.com> <3ED0B820.5050603@noplace.com> <3ED2096F.3020800@noplace.com> <3ED353BE.40605@noplace.com> <3ED4A323.3000909@noplace.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1054310620 22894 199.172.62.241 (30 May 2003 16:03:40 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 30 May 2003 16:03:40 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:38112 Date: 2003-05-30T12:03:40-04:00 List-Id: Vinzent Hoefler writes: > >If you then subtract 100 from X, you go "too far" in the other > >direction, it seems to me. > > Well, no. But this might be specific to the problem domain. > > If I am going back that is because I compress the output color space, > so subtracting -100 from a black pixel that saturated before is > perfectly correct. OK, I guess that makes sense. In my current project, I am using saturating arithmetic that is sticky, but I now see that non-sticky might also be useful. (My package "sticks" at something like 2**1000 -- it uses multi-word arithmetic.) - Bob