Research V3 development
[unix-history] / man / man2 / fpe.2
.pa 1
.he 'FPE (II)'9/2/72'FPE (II)'
.ti 0
NAME fpe -- set floating exception handling
.sp
.ti 0
SYNOPSIS sys fpe; arg / fpe = 40. not in assembler
.sp
.ti 0
DESCRIPTION This call
allows one to catch traps resulting from
floating point exceptions.
Arg\b\b\b___ is a location within the program; floating exception traps
are sent to that location.
The normal effect of floating exception traps may be restored by giving
an arg\b\b\b___ equal to 0.
.sp
To return after catching the
fpe\b\b\b___
trap, execute the rti\b\b\b___ instruction.
.sp
.ti 0
SEE ALSO --
.sp
.ti 0
DIAGNOSTICS --
.sp
.ti 0
BUGS The
floating point exception (FEC) register
is not saved per process.
Examining this register for possible
remedial action after a floating point
exception trap is not guaranteed to work.