Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.lang.c Subject: Re: C language hacking Message-ID: <5942@brl-tgr.ARPA> Date: Tue, 20-Nov-84 12:32:07 EST Article-I.D.: brl-tgr.5942 Posted: Tue Nov 20 12:32:07 1984 Date-Received: Thu, 22-Nov-84 05:48:14 EST References: <5715@brl-tgr.ARPA> <1161@orca.UUCP> <383@x.UUCP> Organization: Ballistic Research Lab Lines: 15 > > "It would also be nice if sin( x ) and cos( x ) could be > > computed simultaneously with reduced cost. ... > > It's easy. Buggering the compiler to do it solves *one* case fast, at the > expense of still having garbage code. Sorry, John, but you missed the point of my inquiry. I was not suggesting that the compiler should have anything to do with this. I want a speedy algorithm that computes both functions simultaneously. The majority of the time spent is NOT in the function linkage but rather in the guts of the computation (which is usually range reduction followed by a rational approximation). The reason why this matters should be pretty obvious to anyone who does graphics programming for a living.