]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/__setfpucw.3
Many pages: Use correct letter case in page titles (TH)
[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.\"
95fb8859 4.\" SPDX-License-Identifier: GPL-1.0-or-later
7674db48 5.\"
4c1c5274 6.TH __setfpucw 3 (date) "Linux man-pages (unreleased)"
fea681da 7.SH NAME
696dbf1a 8__setfpucw \- set FPU control word on i386 architecture (obsolete)
42009080
AC
9.SH LIBRARY
10Standard C library
11.RI ( libc ", " \-lc )
fea681da 12.SH SYNOPSIS
c7db92b9 13.nf
fea681da 14.B #include <i386/fpu_control.h>
68e4db0a 15.PP
5f858d56 16.BI "[[deprecated]] void __setfpucw(unsigned short " control_word );
c7db92b9 17.fi
fea681da 18.SH DESCRIPTION
e511ffb6 19.BR __setfpucw ()
fea681da 20transfers
c13182ef 21.I control_word
c45bd688
MK
22to the registers of the FPU (floating-point unit) on the i386 architecture.
23This was used to control floating-point precision,
24rounding and floating-point exceptions.
3113c7f3 25.SH STANDARDS
c8f2dd47 26This function was a nonstandard GNU extension.
696dbf1a 27.SH NOTES
fea681da 28As of glibc 2.1 this function does not exist anymore.
68e1685c 29There are new functions from C99, with prototypes in
3ea909db 30.IR <fenv.h> ,
696dbf1a 31to control FPU rounding modes, like
56587252
MK
32.BR fegetround (3),
33.BR fesetround (3),
c45bd688 34and the floating-point environment, like
56587252
MK
35.BR fegetenv (3),
36.BR feholdexcept (3),
37.BR fesetenv (3),
38.BR feupdateenv (3),
696dbf1a 39and FPU exception handling, like
56587252
MK
40.BR feclearexcept (3),
41.BR fegetexceptflag (3),
42.BR feraiseexcept (3),
43.BR fesetexceptflag (3),
44and
45.BR fetestexcept (3).
fea681da 46.PP
ec5a588f
MK
47If direct access to the FPU control word is still needed, the
48.B _FPU_GETCW
49and
50.B _FPU_SETCW
51macros from
3ea909db 52.I <fpu_control.h>
fea681da 53can be used.
a14af333 54.SH EXAMPLES
0daa9e92 55.B __setfpucw(0x1372)
847e0d88 56.PP
696dbf1a 57Set FPU control word on the i386 architecture to
e98dc8fa
AC
58.RS
59.PD 0
22356d97 60.IP \(bu 3
e98dc8fa 61extended precision
22356d97 62.IP \(bu
e98dc8fa 63rounding to nearest
22356d97 64.IP \(bu
e98dc8fa
AC
65exceptions on overflow, zero divide and NaN
66.PD
67.RE
47297adb 68.SH SEE ALSO
fea681da 69.BR feclearexcept (3)
bfcd3eb0 70.PP
3ea909db 71.I <fpu_control.h>