Re: Pentium 1.8Ghz / Windows 2000 / Delphi 6 problem

From: Terry Russell (trochilus_at_oRpEtMuOsVnEet.com.au)
Date: 10/28/04


Date: Thu, 28 Oct 2004 12:20:49 +0930


"Joe Smith" <joesmith323@hotmail.com> wrote in message
news:41804a80.158384333@news.telus.net...
> On Wed, 27 Oct 2004 08:42:24 +0000 (UTC), erewhon@nowhere.uk (J
> French) wrote:
>
> set8087cw(Default8087CW);
>

easy to miss
"Set8087CW sets both the control word in the floating point unit and the
variable Default8087CW declared in the system unit."

it should probably be a constant value for known state, anything that saves
then
restores set8087cw(olfpucw) will change the 'default'

system.pas initialises it to

var
  Default8087CW: Word = $1332;{ Default 8087 control word. FPU control
                                register is set to this value.
                                CAUTION: Setting this to an invalid value
                                          could cause unpredictable
behaiour. }



Relevant Pages

  • Re: Pentium 1.8Ghz / Windows 2000 / Delphi 6 problem
    ... >"Set8087CW sets both the control word in the floating point unit and the ... >variable Default8087CW declared in the system unit." ... should not be changed by user reassignments. ... explain quite a few of the floating point problems people have. ...
    (comp.lang.pascal.delphi.misc)
  • Re: What are the VCL RTL?
    ... J French wrote: ... you don't need it in Delphi ... references, including the memory manager, exception handlers, and all the code behind TObject, strings, dynamic arrays, Variant, and interfaces. ... Everything in the System unit is part of the RTL. ...
    (comp.lang.pascal.delphi.misc)