Path: chuka.playstation.co.uk!toby From: toby@angst.forefront.com.au (Toby Sargeant) Newsgroups: scee.yaroze.beginners Subject: Re: I can'tuse math functions!!!! Date: 27 Feb 1998 01:20:43 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 20 Message-ID: References: <6d3ul7$e4u1@emeka.playstation.co.uk> NNTP-Posting-Host: ns.forefront.com.au X-Newsreader: slrn (0.9.4.6 UNIX) On 26 Feb 1998 14:36:23 -0000, Lewis_Evans@Playstation.sony.com wrote: >From: Lewis_Evans@Playstation.sony.com >To: news@playstation.co.uk > >See the SCEE demo 'car', the hi-res split-screen car racer. >There's a file called 'sqrt.c' which houses a 64K square-root >look-up table. > > Lewis some references on fast integer square root calculations: http://www.cs.waikato.ac.nz/~rbg/sqrt/ the factoring method can be used with a much smaller lookup table (or no lookup table, if need be). don't know what the speed difference would be, but it might be handy if you don't have 64k to play with. Toby.