[vorbis-dev] Libvorbis suggestion & floating point exception

Monty xiphmont at xiph.org
Wed Sep 25 20:15:19 PDT 2002



On Thu, Sep 26, 2002 at 01:30:41AM +0200, Jan Lellmann wrote:
> 
> Since nobody likes to reply, I'll do it myself :)
> 
> The floating point exception is a "divide by zero", which happens quite
> often (and in several places) in libvorbis, the most prominent place being
> fit_line called with one or zero points to fit.
> 
> I figured this does not affect some (most) people because of the floating
> point exception handling turned off by their compilers/on their systems, so
> I tried to just disable it and it actually seems to work.
> 
> So for anyone having the same problem, I inserted these two functions:

Actually, it should be impossible by variant for fit_line to divide by
zero.  That divide by zero is a bug, and we'll fix it.

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