search for: flipm

Displaying 1 result from an estimated 1 matches for "flipm".

Did you mean: flip
2002 Nov 18
1
i386 floating point tweaking
Just been trying to get the polygon triangulation code from this package: http://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...