version 1, including all changes.
.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
__SETFPUCW |
| |
|
2 |
!!!__SETFPUCW |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
EXAMPLE |
| |
|
7 |
AVAILABILITY |
| |
|
8 |
SEE ALSO |
| |
|
9 |
---- |
| |
|
10 |
!!NAME |
| |
|
11 |
|
| |
|
12 |
|
| |
|
13 |
__setfpucw - set fpu control word on i386 architecture (obsolete) |
| |
|
14 |
!!SYNOPSIS |
| |
|
15 |
|
| |
|
16 |
|
| |
|
17 |
__#include __ |
| |
|
18 |
|
| |
|
19 |
|
| |
|
20 |
__void __setfpucw((unsigned short)__ |
| |
|
21 |
''control_word''__);__ |
| |
|
22 |
!!DESCRIPTION |
| |
|
23 |
|
| |
|
24 |
|
| |
|
25 |
____setfpucw__ transfers ''control_word'' to the |
| |
|
26 |
registers of the fpu (floating point unit) on i386 |
| |
|
27 |
architecture. This was used to control floating point |
| |
|
28 |
precision, rounding and floating point |
| |
|
29 |
exceptions. |
| |
|
30 |
!!EXAMPLE |
| |
|
31 |
|
| |
|
32 |
|
| |
|
33 |
____setfpucw(0x1372)__ |
| |
|
34 |
|
| |
|
35 |
|
| |
|
36 |
Set fpu control word on i386 architecture to |
| |
|
37 |
- extended precision |
| |
|
38 |
- rounding to nearest |
| |
|
39 |
- exceptions on overflow, zero divide and NaN |
| |
|
40 |
!!AVAILABILITY |
| |
|
41 |
|
| |
|
42 |
|
| |
|
43 |
As of glibc 2.1 this function does not exist anymore. There |
| |
|
44 |
are new functions from ISO C99, with prototypes in |
| |
|
45 |
''/usr/include/fenv.h'', to control fpu rounding modes, |
| |
|
46 |
like ''fegetround'', ''fesetround'', and the floating |
| |
|
47 |
point environment, like ''fegetenv'', |
| |
|
48 |
''feholdexcept'', ''fesetenv'', ''feupdateenv'' and |
| |
|
49 |
fpu exception handling, like ''feclearexcept'', |
| |
|
50 |
''fegetexceptflag'', ''feraiseexcept'', |
| |
|
51 |
''fesetexceptflag'', ''fetestexcept''. These functions |
| |
|
52 |
don't have manpages, but are documented in the ''info'' |
| |
|
53 |
docs. |
| |
|
54 |
|
| |
|
55 |
|
| |
|
56 |
If direct acces to the FPU control word is still needed, the |
| |
|
57 |
_FPU_GETCW and _FPU_SETCW macros from |
| |
|
58 |
''/usr/include/fpu_control.h'' can be used. |
| |
|
59 |
!!SEE ALSO |
| |
|
60 |
|
| |
|
61 |
|
| |
|
62 |
feclearexcept(3)'' |
| |
|
63 |
/usr/include/i386/fpu_control.h'' |
| |
|
64 |
---- |