Mail Archives: djgpp/1993/12/17/14:13:23
That's me
> result instead. Also -- an may be more important -- then the result
> of a calculation does not depend on the status of the NPX when the
> program is called.
Bill writes
I don't understand this statement. Provided that the FPU is properly
initialized (set the cw, clear the sw, etc) then the results never
depend upon the state of the FPU before the initialization.
I probably was wrong. I overlooked, that the `finit' instruction will reset
the control word (correct?). The code section for initialization is
fninit
fnstcw temp87
wait
and temp87, 0xfffah
fldcw temp87
I was suspicious because I found better results with a math test package
(paranoia), after setting the control word to 0x137f.
Dieter
- Raw text -