]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/__setfpucw.3
fuse.4: ffix
[thirdparty/man-pages.git] / man3 / __setfpucw.3
CommitLineData
3d54a910
MK
1.\" Written Sat Mar 8 10:35:08 MEZ 1997 by
2.\" J. "MUFTI" Scheurich (mufti@csv.ica.uni-stuttgart.de)
2297bf0e 3.\"
fd0fc519 4.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
7674db48 5.\" This page is licensed under the GNU General Public License
fd0fc519 6.\" %%%LICENSE_END
7674db48 7.\"
4b8c67d9 8.TH __SETFPUCW 3 2017-09-15 "Linux" "Linux Programmer's Manual"
fea681da 9.SH NAME
696dbf1a 10__setfpucw \- set FPU control word on i386 architecture (obsolete)
fea681da
MK
11.SH SYNOPSIS
12.B #include <i386/fpu_control.h>
68e4db0a 13.PP
84b1afa3 14.BI "void __setfpucw(unsigned short " control_word );
fea681da 15.SH DESCRIPTION
e511ffb6 16.BR __setfpucw ()
fea681da 17transfers
c13182ef 18.I control_word
c45bd688
MK
19to the registers of the FPU (floating-point unit) on the i386 architecture.
20This was used to control floating-point precision,
21rounding and floating-point exceptions.
2cd8446a 22.SH CONFORMING TO
c8f2dd47 23This function was a nonstandard GNU extension.
696dbf1a 24.SH NOTES
fea681da 25As of glibc 2.1 this function does not exist anymore.
68e1685c 26There are new functions from C99, with prototypes in
3ea909db 27.IR <fenv.h> ,
696dbf1a 28to control FPU rounding modes, like
56587252
MK
29.BR fegetround (3),
30.BR fesetround (3),
c45bd688 31and the floating-point environment, like
56587252
MK
32.BR fegetenv (3),
33.BR feholdexcept (3),
34.BR fesetenv (3),
35.BR feupdateenv (3),
696dbf1a 36and FPU exception handling, like
56587252
MK
37.BR feclearexcept (3),
38.BR fegetexceptflag (3),
39.BR feraiseexcept (3),
40.BR fesetexceptflag (3),
41and
42.BR fetestexcept (3).
fea681da 43.PP
ec5a588f
MK
44If direct access to the FPU control word is still needed, the
45.B _FPU_GETCW
46and
47.B _FPU_SETCW
48macros from
3ea909db 49.I <fpu_control.h>
fea681da 50can be used.
2b2581ee 51.SH EXAMPLE
0daa9e92 52.B __setfpucw(0x1372)
847e0d88 53.PP
696dbf1a 54Set FPU control word on the i386 architecture to
2b2581ee
MK
55.br
56 \- extended precision
57.br
58 \- rounding to nearest
59.br
60 \- exceptions on overflow, zero divide and NaN
47297adb 61.SH SEE ALSO
fea681da 62.BR feclearexcept (3)
bfcd3eb0 63.PP
3ea909db 64.I <fpu_control.h>