Displaying 3 results from an estimated 3 matches for "_fpu_setcw".
2002 Nov 18
1
i386 floating point tweaking
...p://www-2.cs.cmu.edu/~quake/triangle.html to dyn.load into
R. Uh oh. Floating point exceptions.
Track it down to some FPU diddling that the author deems is necessary.
Here's my minimal code that breaks:
flipme.c:
#include <fpu_control.h>
void flipme(){
int cword;
cword=4210;
_FPU_SETCW(cword);
printf("%f\n",sqrt(2.0));
}
Compile with "R SHLIB flipme.c", then dyn.load and run:
> dyn.load("flipme.so")
> .C("flipme")
Process R floating point exception at Mon Nov 18 17:41:50 2002
The debugger tells me its the printf line that...
2009 Jul 27
1
how to change FPU control word?
Dear developers,
is there (already) a platform-independent way for (temporarily!)
changing the fpu control word?
More precisely: I am looking for functions (accessible from C code in R
packages) which read and write the fpu control word on x86 cpus (and
cause no harm otherwise), because I need to (temporarily) turn off
internal 80-bit precision for some algorithms relying on 64-bit IEEE
2010 Nov 16
3
Installing Wine From A Patched Source
A program I'm running requires a patch to be installed, I successfully downloaded the source and applied the patch to the source. How do I compile this into a wine build I can use now? The documentation on the wiki doesn't help that much, I'm quite new to all this.