Object-oriented access to the environment

"The environment classes" on page 238 discusses the CommonPoint classes providing access to the floating-point environment. Class member functions and destructors support a more powerful abstraction than provided by the simple FPCE functions in fenv.h.

NOTE Code using the environment classes in FPEnvironment.h will port seamlessly between CommonPoint platforms. To recast such code for FPCE systems using the functions in fenv.h you'll have to:

  1. Replace the constructor with FPCE calls to save and initialize the environment.
  2. Replace each explicit manipulation of the environment or an inactive copy of the environment by the corresponding FPCE function.
  3. Add code at the end of relevant blocks to effect the actions of the environment destructors.

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker