correct FPU control word setting bug (Trac #1547)
authorMonty <xiphmont@xiph.org>
Wed, 8 Jul 2009 06:21:02 +0000 (06:21 +0000)
committerMonty <xiphmont@xiph.org>
Wed, 8 Jul 2009 06:21:02 +0000 (06:21 +0000)
svn path=/trunk/vorbis/; revision=16223

lib/os.h

index 960a382..ebff316 100644 (file)
--- a/lib/os.h
+++ b/lib/os.h
@@ -97,7 +97,7 @@ static inline void vorbis_fpu_setround(vorbis_fpu_control *fpu){
   ogg_int16_t temp;
   __asm__ __volatile__("fnstcw %0\n\t"
           "movw %0,%%dx\n\t"
-          "orw $62463,%%dx\n\t"
+          "andw $62463,%%dx\n\t"
           "movw %%dx,%1\n\t"
           "fldcw %1\n\t":"=m"(ret):"m"(temp): "dx");
   *fpu=ret;