[Rd] how to change FPU control word?

Andrew Piskorski atp at piskorski.com
Tue Jul 28 12:22:53 CEST 2009


On Mon, Jul 27, 2009 at 12:41:42PM +0200, Martin Becker wrote:

> is there (already) a platform-independent way for (temporarily!) 
> changing the fpu control word?

> Currently, I am using inline assembler (which works for x86 cpus on
> Linux and Windows (MinGW))

Platform-indepdendent?  I don't know about that.  But on Linux, mostly
x86-64, we use these from C:

  _FPU_GETCW()
  _FPU_SETCW()

-- 
Andrew Piskorski <atp at piskorski.com>
http://www.piskorski.com/



More information about the R-devel mailing list