Fix build issues on OS X i386.

This commit is contained in:
comex
2013-10-05 22:55:01 -04:00
parent c054049712
commit a9908fdf09
4 changed files with 6 additions and 4 deletions

View File

@ -70,7 +70,7 @@ namespace FPURoundMode
3 << 8, // FPU_PREC_MASK
};
unsigned short _mode;
asm ("fstcw %0" : : "m" (_mode));
asm ("fstcw %0" : "=m" (_mode));
_mode = (_mode & ~table[3]) | table[mode];
asm ("fldcw %0" : : "m" (_mode));
#endif