summaryrefslogtreecommitdiff
path: root/static/v10/man2/fpe.2
blob: 1da996846b633cc60bcab244cb51e7d28056b575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.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___ 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___ equal to 0.
.sp
To return after catching the
fpe___
trap, execute the rti___ 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.