Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.programmer,comp.lang.c Subject: Re: Arithmetic overflow checking Date: Mon, 11 Jul 2011 14:40:26 -0700 Organization: A noiseless patient Spider Lines: 23 Message-ID: <6drm179m8etc30s0u8b0g63rcblltsa67g@4ax.com> References: <2rydnez7l-H5BYnTnZ2dnUVZ_vGdnZ2d@earthlink.com> <9LWdnZH2hdfmyYvTnZ2dnUVZ_vidnZ2d@posted.palinacquisition> <3797038f-22d1-40b2-8c12-60db5a0976b8@t5g2000yqj.googlegroups.com> <468f2805-8ba2-4931-8baa-b3b45d838532@ct4g2000vbb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="7Qrvczazr82YckO5XW8Vtw"; logging-data="23396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WmVk0J4da6qGrzAgvJEHL5jXUol+UvC0=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:H4YStw8M0woxnzMLTSqMleqH8Tk= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6084 comp.lang.c:8141 On Mon, 11 Jul 2011 10:48:47 -0700 (PDT), Malcolm McLean wrote: >On Jul 11, 5:58 pm, Gene Wirchenko wrote: >> >>      Most of the time, the speed is not required.  I 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. As someone once asked on a newsgroup that I follow, "How fast do you want your wrong answers?" Sincerely, Gene Wirchenko