[vorbis-dev] optimizing float to int conversions

Monty xiphmont at xiph.org
Wed May 5 16:20:03 PDT 2004



On Thu, May 06, 2004 at 08:46:56AM +1000, Conrad Parker wrote:
> Hi all,
> 
> Erik de Castro Lopo (of libsndfile) wrote a report on this issue:
> 
>     http://www.mega-nerd.com/FPcast/
> 
> It turns out there's C99 functions to do the machine's preferred
> conversion. He introduces that and also provides m4 macros for detecting
> it, and inline versions to fall back on for legacy hosts (like Win32 ;)
> 
> The float_cast.h in current libsndfile also provides inlines for ppc; I'm
> sure erik has some good reason for not using OS X's native lrint[f]?
> 
> btw. libsndfile also contains a bunch of macros for stuff like detecting
> the cpu's clip mode; its aclocal.m4 is an interesting read.

w00t!  Thanks Conrad...

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