search for: fstcw

Displaying 5 results from an estimated 5 matches for "fstcw".

Did you mean: fnstcw
2004 Jun 10
2
Questions about Preserving registers
...e, then save that as the Delphi default. Put this code in the library module: ## My question: Is that mean put the following code in my Fortran routine without any change based on the message I got? procedure Rwin_fpset; cdecl; external 'R.dll'; function Get8087CW:word; begin asm fstcw result end; end; begin Rwin_fpset(); Set8087CW(Get8087CW); end. 2. After any operation that may have changed the status word, put this call before returning to R: ## My question: where do I put the line below? Set8087CW(Default8087CW); 3. The following function may be useful in d...
2001 Oct 17
1
res0.c / by 0?
In res0.c, line 78 I get a a division by zero (look->frames==0) when running vorbisfile_example. Is this some debugging code? Note that you don't see the exception unless you insert __asm{ push edx sub esp, 4 fstcw [esp] mov dx, [esp] and dx, 0xFFFE mov [esp], dx fldcw [esp] add esp, 4 pop edx } in vorbisfile_example.c directly after line 82. (Win2000sp2/msvc6sp5pp) You also get this when calling ov_clear() from code where...
2006 Nov 21
1
dyn.load
...er R : R tests FPU register and is happy USER : Sees "Success library is loaded!" or something to that effect :) Any ideas on how to achieve this? Many thanks Tom ====DELPHI CODE===== procedure Rwin_fpset; cdecl; external 'R.dll'; function Get8087CW:word; begin asm fstcw result end; end; begin Rwin_fpset(); <============== these lines I think is called on loading of the DLL to reset the register Set8087CW(Get8087CW); <======== end. ===END DELPHI CODE===== -- Dr. Thomas McCallum Systems Architect, Level E Limited ETTC, The King's Buildings...
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);
2002 Sep 23
2
Libvorbis suggestion & floating point exception
Hello, I'm not quite sure if this is the right list for my questions, please excuse if it isn't. 1. While using vorbislib (Win2K/Borland C++ Builder 5), I'm getting reproducible floating point exceptions at lots of sample rate/bit rate combinations. For example, the original encoder_example.c, with just the initialization line changed to