[vorbis-dev] res0.c / by 0?

Michael Smith msmith at labyrinth.net.au
Wed Oct 17 15:37:33 PDT 2001



At 01:04 PM 10/17/01 -0700, you wrote:
>> Note that you don't see the exception unless you insert
>> 
>>   __asm{
>>           push    edx
>>           sub     esp, 4
>>           fstcw   [esp]
>>           mov     dx, [esp]
>>           and     dx, 0xFFFE
>>           mov     [esp], dx
>>           fldcw   [esp]
>>           add     esp, 4
>>           pop     edx
>>   }
>
>There's a slightly less hairy way of doing this using the MSVC functions
>_controlfp() and _control87(), at least it avoids inline asm.  I believe
>most other compilers on Win32 also provide similarly named constructs.
>Adding a generic interface to disable/enable exceptions may be a good
>idea?

Yeah, we occasionally add them into our local trees depending on the
compiler in use at the time for debugging purposes. This sort of thing
kills alpha, since it doesn't mask these by default, so we always get 
the alpha guys reporting this sort of bug :-)

In this particular case, I think it's just debugging code that can be 
safely removed (and won't be in any releases anyway). Since CVS doesn't
work all that well anyway at the moment, it's not a big deal. 

Thanks for the bugreport anyway.

Michael

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