Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!ct4g2000vbb.googlegroups.com!not-for-mail From: Malcolm McLean Newsgroups: comp.lang.java.programmer,comp.lang.c Subject: Re: Arithmetic overflow checking Date: Mon, 11 Jul 2011 10:48:47 -0700 (PDT) Organization: http://groups.google.com Lines: 19 Message-ID: <468f2805-8ba2-4931-8baa-b3b45d838532@ct4g2000vbb.googlegroups.com> References: <015aeb15-57db-48ab-9cd4-77f8448b632f@w24g2000yqw.googlegroups.com> <2rydnez7l-H5BYnTnZ2dnUVZ_vGdnZ2d@earthlink.com> <9LWdnZH2hdfmyYvTnZ2dnUVZ_vidnZ2d@posted.palinacquisition> <3797038f-22d1-40b2-8c12-60db5a0976b8@t5g2000yqj.googlegroups.com> NNTP-Posting-Host: 132.77.4.129 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1310406855 31687 127.0.0.1 (11 Jul 2011 17:54:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 11 Jul 2011 17:54:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: ct4g2000vbb.googlegroups.com; posting-host=132.77.4.129; posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn User-Agent: G2/1.0 X-HTTP-Via: 1.1 wisweb2-out (NetCache NetApp/6.0.6) X-Google-Web-Client: true X-Google-Header-Order: HCUALESRFV X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6077 comp.lang.c:8136 On Jul 11, 5:58=A0pm, Gene Wirchenko wrote: > > =A0 =A0 =A0Most of the time, the speed is not required. =A0I will take > slightly slower, correct results over fast, possibly wrong results. > The game keeps on changing. For instance modern space invaders are slowed down by the need to normalise their vectors for lighting. Most of the rest of the code is either handled by special rasterisers, or is insignificant in the larger scheme of things. However they used to crawl about the screen unless you pulled all the layers of indirection and gift-wrapping and bounds checking away. -- Learn MPI (message passing interface). On my website, http://www.malcolmmclean.site11.com/www