Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

isnan(3C)



fpgetround(3C)                                     fpgetround(3C)



NAME
     fpgetround, fpsetround, fpgetmask, fpsetmask, fpgetsticky,
     fpsetsticky, fpgettcfp, fpsettcfp - IEEE floating point
     environment control

SYNOPSIS
     #include <ieeefp.h>

     fp_rnd fpgetround ()

     fp_rnd fpsetround (rnd_dir)
     fp_rnd rnd_dir;

     fp_except fpgetmask ()

     fp_except fpsetmask (mask)
     fp_except mask;

     fp_except fpgetsticky ()

     fp_except fpsetsticky (mask)
     fp_except mask;

     fp_tcfp fpgettcfp ()

     fp_tcfp fpsettcfp (mask)
     fp_tcfp mask;

DESCRIPTION
     These functions give the user some control over the handling
     of the IEEE floating point exceptions, the rounding mode of
     floating point operations, and the Series 5000 time-critical
     floating point modes.

     Fpgetround returns the rounding mode currently in effect.

     Fpsetround sets the rounding mode to rnd_dir and returns the
     rounding mode previously in effect.

     Fpgetmask returns the mask of enabled IEEE floating excep-
     tions currently in effect.

     Fpsetmask enables the IEEE floating point exceptions speci-
     fied in mask, disables the other IEEE floating point excep-
     tions, and returns the mask of enabled IEEE floating excep-
     tions previously in effect.

     Fpgetsticky returns the mask of IEEE floating exceptions
     currently detected by the system.

     Fpsetsticky sets the IEEE floating point exceptions speci-
     fied in mask, clears the other IEEE floating point



Page 1                        CX/UX Programmer's Reference Manual





fpgetround(3C)                                     fpgetround(3C)



     exceptions, and returns the mask of IEEE floating exceptions
     previously detected by the system.

     Fpgettcfp returns the mask of time-critical floating point
     modes currently in effect.  This function can be used only
     on Series 5000 systems.

     Fpsettcfp sets the time-critical floating point modes speci-
     fied in mask, clears the other time-critical floating point
     modes, and returns the mask of time-critical floating point
     modes previously in effect.  This function can be used only
     on Series 5000 systems.

     The default environment is:
          Rounding mode set to nearest (FP_RN),
          Divide-by-zero, overflow, and invalid operation exceptions enabled.
          Time-critical floating point modes not in effect.

SEE ALSO
     isnan(3C)



































Page 2                        CX/UX Programmer's Reference Manual



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026