[vorbis-dev] Another good optimization (for PPC only, though)

David Riley oscar at the-rileys.net
Sun Nov 26 20:57:09 PST 2000



"Timothy J. Wood" wrote:
> 
> #if defined(__ppc__)
> // Vanilla PPC code, but since PPC has a reciprocal square root estimate instruction,
> // runs *much* faster than calling sqrt().  We'll use two Newton-Raphson
> // refinement steps to get bunch more precision in the 1/sqrt() value for very little cost.

This should also do nicely with 3dnow, which has similar instructions. 
I dunno about SSE, I don't know the instruction set or have a processor
with which to test it.  If no one else wants to work on this, I'll try
in a few days (once a new CPU comes for my Linux box, which is down ATM).

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list