1 .\" Written Sat Mar 8 10:35:08 MEZ 1997 by J. "MUFTI" Scheurich (mufti@csv.ica.uni-stuttgart.de)
2 .\" This page is licensed under the GNU General Public License
4 .TH __SETFPUCW 3 1997-03-08 "i386 Linux Man Page" "Linux Programmer's Manual"
6 __setfpucw \- set fpu control word on i386 architecture (obsolete)
8 .B #include <i386/fpu_control.h>
10 .BI "void __setfpucw((unsigned short) " control_word );
16 to the registers of the fpu (floating point unit) on i386 architecture. This
17 was used to control floating point precision, rounding and floating point
21 .BR __setfpucw(0x1372)
23 Set fpu control word on i386 architecture to
27 \- rounding to nearest
29 \- exceptions on overflow, zero divide and NaN
32 As of glibc 2.1 this function does not exist anymore.
33 There are new functions from C99, with prototypes in
34 .IR /usr/include/fenv.h ,
35 to control fpu rounding modes, like
38 and the floating point environment, like
43 and fpu exception handling, like
50 If direct access to the FPU control word is still needed, the _FPU_GETCW
51 and _FPU_SETCW macros from
52 .I /usr/include/fpu_control.h
57 .IR /usr/include/i386/fpu_control.h