]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/__setfpucw.3
fanotify_init.2, fanotify.7: Document FAN_REPORT_TID
[thirdparty/man-pages.git] / man3 / __setfpucw.3
index bffcb11ca422355dfec72beb18cf4af81bec1c24..01b4334ebc3f15c6efaf92f76ffe467bdc24f06b 100644 (file)
@@ -1,57 +1,64 @@
-.\" Written Sat Mar  8 10:35:08 MEZ 1997 by J. "MUFTI" Scheurich (mufti@csv.ica.uni-stuttgart.de)
+.\" Written Sat Mar  8 10:35:08 MEZ 1997 by
+.\" J. "MUFTI" Scheurich (mufti@csv.ica.uni-stuttgart.de)
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
 .\" This page is licensed under the GNU General Public License
+.\" %%%LICENSE_END
 .\"
-.TH __SETFPUCW 3 1997-03-08 "i386 Linux Man Page" "Linux Programmer's Manual"
+.TH __SETFPUCW 3 2017-09-15 "Linux" "Linux Programmer's Manual"
 .SH NAME
-__setfpucw \- set fpu control word on i386 architecture (obsolete)
+__setfpucw \- set FPU control word on i386 architecture (obsolete)
 .SH SYNOPSIS
 .B #include <i386/fpu_control.h>
-.sp
-.BI "void __setfpucw((unsigned short) " control_word );
-.br
+.PP
+.BI "void __setfpucw(unsigned short " control_word );
 .SH DESCRIPTION
 .BR __setfpucw ()
 transfers
-.I control_word 
-to the registers of the fpu (floating point unit) on i386 architecture. This 
-was used to control floating point precision, rounding and floating point 
-exceptions.
+.I control_word
+to the registers of the FPU (floating-point unit) on the i386 architecture.
+This was used to control floating-point precision,
+rounding and floating-point exceptions.
+.SH CONFORMING TO
+This function was a nonstandard GNU extension.
+.SH NOTES
+As of glibc 2.1 this function does not exist anymore.
+There are new functions from C99, with prototypes in
+.IR <fenv.h> ,
+to control FPU rounding modes, like
+.BR fegetround (3),
+.BR fesetround (3),
+and the floating-point environment, like
+.BR fegetenv (3),
+.BR feholdexcept (3),
+.BR fesetenv (3),
+.BR feupdateenv (3),
+and FPU exception handling, like
+.BR feclearexcept (3),
+.BR fegetexceptflag (3),
+.BR feraiseexcept (3),
+.BR fesetexceptflag (3),
+and
+.BR fetestexcept (3).
+.PP
+If direct access to the FPU control word is still needed, the
+.B _FPU_GETCW
+and
+.B _FPU_SETCW
+macros from
+.I <fpu_control.h>
+can be used.
 .SH EXAMPLE
-
-.BR __setfpucw(0x1372)
-
-Set fpu control word on i386 architecture to
+.B __setfpucw(0x1372)
+.PP
+Set FPU control word on the i386 architecture to
 .br
      \- extended precision
-.br     
+.br
      \- rounding to nearest
-.br     
+.br
      \- exceptions on overflow, zero divide and NaN
-.br 
-.SH AVAILABILITY
-As of glibc 2.1 this function does not exist anymore.
-There are new functions from ISO C99, with prototypes in
-.IR /usr/include/fenv.h ,
-to control fpu rounding modes, like
-.IR fegetround ,
-.IR fesetround ,
-and the floating point environment, like
-.IR fegetenv ,
-.IR feholdexcept ,
-.IR fesetenv ,
-.IR feupdateenv 
-and fpu exception handling, like
-.IR feclearexcept ,
-.IR fegetexceptflag ,
-.IR feraiseexcept ,
-.IR fesetexceptflag ,
-.IR fetestexcept .
-.PP
-If direct access to the FPU control word is still needed, the _FPU_GETCW
-and _FPU_SETCW macros from
-.I /usr/include/fpu_control.h
-can be used.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR feclearexcept (3)
-.br
-.IR /usr/include/i386/fpu_control.h
+.PP
+.I <fpu_control.h>