Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

FPP_$SET_TRAP_ENABLES             Domain/OS              FPP_$SET_TRAP_ENABLES


NAME
     fpp_$set_trap_enables - set floating-point exception traps

SYNOPSIS (C)
     #include <apollo/base.h>
     #include <apollo/fpp.h>

     void fpp_$set_trap_enables(
          fpp_$trap_enables_t enabled_traps,
          status_$t *status)

SYNOPSIS (Pascal)
     %include '/sys/ins/base.ins.pas';
     %include '/sys/ins/fpp.ins.pas';

     procedure fpp_$set_trap_enables(
          in enabled_traps: fpp_$trap_enables_t;
          out status: status_$t);

SYNOPSIS (FORTRAN)
     %include '/sys/ins/base.ins.ftn'
     %include '/sys/ins/fpp.ins.ftn'

           integer*2 enabled_traps
           integer*4 status

           call fpp_$set_trap_enables(enabled_traps, status)

DESCRIPTION
     Fpp_$set_trap_enables enables and disables floating-point exception
     traps.  If the floating-point unit does not support exception traps,
     fpp_$set_trap_enables returns with status set to
     fpp_$unsupported_operation.  All traps except the inexact and underflow
     traps are set by default.

     enabled_traps
          A small set of floating-point exception traps to enable.  Ommiting a
          trap from enabled_traps disables it.  It can take any combination of
          the following values:

          fpp_$enable_branch_unordered
               Enable the branch on unordered comparison trap.

          fpp_$enable_divide_by_zero
               Enable the divide by zero trap.

          fpp_$enable_inexact
               Enable the inexact operation trap.

          fpp_$enable_invalid_operation
               Enable the invalid operation trap.

          fpp_$enable_overflow
               Enable the overflow trap.

          fpp_$enable_signaling_nan
               Enable the operation on a signaling not-a-number trap.

          fpp_$enable_underflow
               Enable the underflow trap.

     status
          The completion status.





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