1 .TH FEHOLDEXCEPT 3 "December 22, 2009"
4 feholdexcept \- disable floating point exceptions
10 int feholdexcept(fenv_t *\fIenvp\fP);
13 The feholdexcept function disables floating point exceptions. The floating
14 point environment prior to disabling exceptions is stored in the struct
15 pointed to by \fIenvp\fP.
17 On x86, this function never fails and the return value is always 0. A portable
18 program should, however, consider the possibility that this function may fail
19 and will return -1 to indicate this.
21 POSIX requires the function to clear exception flags. However, as none of the
22 other functions dealing with FPU flags and FPU state have been implemented this
23 has no effect on MINIX. A full implementation may need to store more FPU state
24 as there is no instruction to change the status word independent of the rest
25 of the FPU state. Do not depend on the fields of fenv_t as they may change even
26 on future versions of MINIX/x86.