1__SETFPUCW(3) Linux Programmer's Manual __SETFPUCW(3)
2
3
4
6 __setfpucw - set fpu control word on i386 architecture (obsolete)
7
9 #include <i386/fpu_control.h>
10
11 void __setfpucw((unsigned short) control_word);
12
14 __setfpucw() transfers control_word to the registers of the fpu (floatā
15 ing point unit) on i386 architecture. This was used to control floating
16 point precision, rounding and floating point exceptions.
17
19 __setfpucw(0x1372)
20
21 Set fpu control word on i386 architecture to
22 - extended precision
23 - rounding to nearest
24 - exceptions on overflow, zero divide and NaN
25
27 As of glibc 2.1 this function does not exist anymore. There are new
28 functions from C99, with prototypes in /usr/include/fenv.h, to control
29 fpu rounding modes, like fegetround, fesetround, and the floating point
30 environment, like fegetenv, feholdexcept, fesetenv, feupdateenv and fpu
31 exception handling, like feclearexcept, fegetexceptflag, feraiseexcept,
32 fesetexceptflag, fetestexcept.
33
34 If direct access to the FPU control word is still needed, the
35 _FPU_GETCW and _FPU_SETCW macros from /usr/include/fpu_control.h can be
36 used.
37
39 feclearexcept(3)
40 /usr/include/i386/fpu_control.h
41
42
43
44i386 Linux Man Page 1997-03-08 __SETFPUCW(3)