Commit bb75f10e authored by Monty's avatar Monty
Browse files

correct FPU control word setting bug (Trac #1547)


svn path=/trunk/vorbis/; revision=16223
parent 9da2f3ae
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment