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

Segher Boessenkool segher at wanadoo.nl
Mon Nov 27 08:11:07 PST 2000



> >>     if (x == 0.0)
> 
> >There are separate +0.0 and -0.0, so you better watch out.
> 
>    if (fabs(x) == 0.0), then I guess.

Depends on processor architecture; sometimes

        if (x <= 0.0f)

is better.

Ciao,

Segher

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