From atp at piskorski.com  Tue Jul 28 12:22:53 2009
From: atp at piskorski.com (Andrew Piskorski)
Date: Tue, 28 Jul 2009 06:22:53 -0400
Subject: [Rd] how to change FPU control word?
In-Reply-To: <4A6D8466.6000603@mx.uni-saarland.de>
References: <4A6D8466.6000603@mx.uni-saarland.de>
Message-ID: <20090728102253.GA22435@piskorski.com>

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/



[Rd] how to change FPU control word?
Andrew Piskorski