From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9611270910.AA09297@alpha3.arm.ac.uk> Date: Wed, 27 Nov 1996 09:10:11 +0000 From: Scott Manley Subject: Re: using linux instead of osf In-Reply-To: <199611262010.NAA06417@web.azstarnet.com> OK correct me if I'm wrong (and I could well be) but surely the single precision sin algorithm should be twice as fast for the simple reason that the number of operations required to converge to the accuracy required will be fewer, and therefore fewer CPU cycles are used. When I implemented similar routines in 68000 assembly this was certainly the case, can anyone tell me what kind of algorithm the trigonometric functions use (since that's where most of my experience lies). Is there some algorithm which is independent of the precision? > So, whether single-precision buys you execution time or not depends > very much on what you're doing. In a naive timing loop measuring > sinf() performance you'd not expect to see any difference since > everything will be cached and sinf() uses no fp divisions. > Indeed this was the sort of quick hack I used, I wanted something heavily dependant on trig functions. -- Scott Manley (aka Szyzyg) /------ _@/ Mail -----\ ___ _ _ __ __ _ | Armagh Observatory | / __| __ ___| |_| |_ | \/ |__ _ _ _ | |___ _ _ | Armagh | \__ \/ _/ _ \ _| _| | |\/| / _` | ' \| / -_) || | | Northern Ireland | |___/\__\___/\__|\__| |_| |_\__,_|_||_|_\___|\_, | | BT61 9DG. | http://star.arm.ac.uk/~spm/welcome.html |__/ \=====================/ -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com