]>
Commit | Line | Data |
---|---|---|
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 |
10 | Standard 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 | 20 | transfers |
c13182ef | 21 | .I control_word |
c45bd688 MK |
22 | to the registers of the FPU (floating-point unit) on the i386 architecture. |
23 | This was used to control floating-point precision, | |
24 | rounding and floating-point exceptions. | |
3113c7f3 | 25 | .SH STANDARDS |
c8f2dd47 | 26 | This function was a nonstandard GNU extension. |
696dbf1a | 27 | .SH NOTES |
fea681da | 28 | As of glibc 2.1 this function does not exist anymore. |
68e1685c | 29 | There are new functions from C99, with prototypes in |
3ea909db | 30 | .IR <fenv.h> , |
696dbf1a | 31 | to control FPU rounding modes, like |
56587252 MK |
32 | .BR fegetround (3), |
33 | .BR fesetround (3), | |
c45bd688 | 34 | and the floating-point environment, like |
56587252 MK |
35 | .BR fegetenv (3), |
36 | .BR feholdexcept (3), | |
37 | .BR fesetenv (3), | |
38 | .BR feupdateenv (3), | |
696dbf1a | 39 | and FPU exception handling, like |
56587252 MK |
40 | .BR feclearexcept (3), |
41 | .BR fegetexceptflag (3), | |
42 | .BR feraiseexcept (3), | |
43 | .BR fesetexceptflag (3), | |
44 | and | |
45 | .BR fetestexcept (3). | |
fea681da | 46 | .PP |
ec5a588f MK |
47 | If direct access to the FPU control word is still needed, the |
48 | .B _FPU_GETCW | |
49 | and | |
50 | .B _FPU_SETCW | |
51 | macros from | |
3ea909db | 52 | .I <fpu_control.h> |
fea681da | 53 | can be used. |
a14af333 | 54 | .SH EXAMPLES |
0daa9e92 | 55 | .B __setfpucw(0x1372) |
847e0d88 | 56 | .PP |
696dbf1a | 57 | Set FPU control word on the i386 architecture to |
e98dc8fa AC |
58 | .RS |
59 | .PD 0 | |
22356d97 | 60 | .IP \(bu 3 |
e98dc8fa | 61 | extended precision |
22356d97 | 62 | .IP \(bu |
e98dc8fa | 63 | rounding to nearest |
22356d97 | 64 | .IP \(bu |
e98dc8fa AC |
65 | exceptions 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> |