Path: chuka.playstation.co.uk!news From: Andrew Partington Newsgroups: scee.yaroze.freetalk.english Subject: Re: sqrt function. Date: Fri, 24 Oct 2003 01:15:23 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 81 Message-ID: References: NNTP-Posting-Host: public2-ward1-6-cust140.manc.broadband.ntl.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en In-Reply-To: Hi Kenny, Is this the sqrt() function in the standard maths lib you're talking about? If so, I can't help you, but I curently use the following code for doing square roots, I think I may have found it on a Yaroze members website or on the newsgroups, but i'm not sure who the author really is. Maybe this one will work for you - it's reputed to be quicker than the standard one anyway. Cheers, Andy P #define STEP(k) s=r+(1L<>=1;if(s<=v){v-=s;r|=(1L< Hi all, > > I finally got my build environment to work under XP Pro. > > However, using FCC 2.8.1 - whenever I use the sqrt function the PSX hangs > completly. > > even just doing this.... > > x=sqrt(16); > > hangs the console. > > Anyone else using sqrt having this trouble? > > -Kenny > >