[vorbis-dev] slightly different audio output

Segher Boessenkool segher at chello.nl
Tue Apr 9 17:01:50 PDT 2002



>   magic.whole = ((long long)x * (long long) y) >> TRIGBITS;
>   return magic.halves.lo;

Use

(blabla + (1 << (TRIGBITS-1))) >> TRIGBITS

<p>This is not as inefficient as it looks, given appropriate
tricks (and appropriate cpu architecture!).

<p>Segher

<p>--- >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