[vorbis-dev] casting/rounding ASM committed to beta3 branch

David Riley oscar at the-rileys.net
Thu Oct 19 14:12:50 PDT 2000



Jack Moffitt wrote:
> 
> 1) float to int of gcc is nasty.  we inlined it with one 'fistp'. (HUGE
> speedup)  (there's two places this is critical for speed.  float -> int
> conversion in vorbisfile.c for the sample output, and in lookup.c for
> the cosine,squareroot,etc lookups for lsp_to_curve).

I've got PPC assembly for float to int if you want that... Does clipping
checking as well.  Let me know if you want that (I don't have it in gas
format, just inlined into a C file... I could try making it gas-friendly).

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