FPP_$GET_TRAP_ENABLES Domain/OS FPP_$GET_TRAP_ENABLES
NAME
fpp_$get_trap_enables - report enabled floating-point exception traps
SYNOPSIS (C)
#include <apollo/base.h>
#include <apollo/fpp.h>
void fpp_$get_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_$get_trap_enables(
out 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_$get_trap_enables(enabled_traps, status)
DESCRIPTION
Fpp_$get_trap_enables reports which floating-point exception traps are
enabled. If the floating-point unit does not support exception traps,
fpp_$get_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 enabled traps. It can have any combination of the
following values:
fpp_$enable_branch_unordered
The branch on unordered comparison trap is enabled.
fpp_$enable_divide_by_zero
The divide by zero trap is enabled.
fpp_$enable_inexact
The inexact operation trap is enabled.
fpp_$enable_invalid_operation
The invalid operation trap is enabled.
fpp_$enable_overflow
The overflow trap is enabled.
fpp_$enable_signaling_nan
The operation on a signaling not-a-number trap is enabled.
fpp_$enable_underflow
The underflow trap is enabled.
status
The completion status.