OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[linuxjm/LDP_man-pages.git] / draft / man3 / __setfpucw.3
1 .\" Written Sat Mar  8 10:35:08 MEZ 1997 by
2 .\" J. "MUFTI" Scheurich (mufti@csv.ica.uni-stuttgart.de)
3 .\" This page is licensed under the GNU General Public License
4 .\"
5 .\" Japanese Version Copyright (c) 1998-2000 ISHIOKA Takashi and NAKANO Takeo
6 .\"         all rights reserved.
7 .\" Translated Mon May  25 10:45:50 1998
8 .\"         by ISHIOKA Takashi
9 .\" Updated Wed Sep 20 2000 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
10 .\"
11 .\"WORD:        (floating-point) exception      (ÉâÆ°¾®¿ôÅÀ) Îã³°
12 .\"WORD:        rounding                        ´Ý¤á
13 .\"
14 .TH __SETFPUCW 3 1997-03-08 "Linux" "Linux Programmer's Manual"
15 .\"O .SH NAME
16 .SH Ì¾Á°
17 .\"O __setfpucw \- set FPU control word on i386 architecture (obsolete)
18 __setfpucw \- i386 ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ë¤ª¤±¤ë FPU
19 ¤Î¥³¥ó¥È¥í¡¼¥ë¥ï¡¼¥É¤ÎÀßÄê (obsolete)
20 .\"O .SH SYNOPSIS
21 .SH ½ñ¼°
22 .B #include <i386/fpu_control.h>
23 .sp
24 .BI "void __setfpucw(unsigned short " control_word );
25 .\"O .SH DESCRIPTION
26 .SH ÀâÌÀ
27 .\"O .BR __setfpucw ()
28 .\"O transfers
29 .\"O .I control_word
30 .\"O to the registers of the FPU (floating-point unit) on the i386 architecture.
31 .\"O This was used to control floating-point precision,
32 .\"O rounding and floating-point exceptions.
33 .BR __setfpucw ()
34 ¤Ï¡¢i386¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ë¤ª¤¤¤Æ
35 .I control_word
36 ¤ò FPU (floating-point unit) ¤Î¥ì¥¸¥¹¥¿¤ËžÁ÷¤¹¤ë¡£
37 ¤³¤ì¤ÏÉâÆ°¾®¿ôÅÀ±é»»¤ÎÀºÅÙ¡¢´Ý¤áÊý¡¢
38 ¤ª¤è¤ÓÉâÆ°¾®¿ôÅÀÎã³°¤òÀ©¸æ¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¡£
39 .\"O .SH CONFORMING TO
40 .SH ½àµò
41 .\"O This function was a nonstandard GNU extension.
42 ¤³¤Î´Ø¿ô¤ÏÈóɸ½à¤Ç GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
43 .\"O .SH NOTES
44 .SH Ãí°Õ
45 .\"O As of glibc 2.1 this function does not exist anymore.
46 .\"O There are new functions from C99, with prototypes in
47 .\"O .IR <fenv.h> ,
48 .\"O to control FPU rounding modes, like
49 .\"O .IR fegetround ,
50 .\"O .IR fesetround ,
51 .\"O and the floating-point environment, like
52 .\"O .IR fegetenv ,
53 .\"O .IR feholdexcept ,
54 .\"O .IR fesetenv ,
55 .\"O .I feupdateenv
56 .\"O and FPU exception handling, like
57 .\"O .IR feclearexcept ,
58 .\"O .IR fegetexceptflag ,
59 .\"O .IR feraiseexcept ,
60 .\"O .IR fesetexceptflag ,
61 .\"O .IR fetestexcept .
62 glibc 2.1 °Ê¹ß¤Ç¤Ï¡¢¤³¤Î´Ø¿ô¤Ï¸ºß¤·¤Ê¤¤¡£
63 ¿·¤¿¤Ê´Ø¿ô·²¤¬ C99 ¤«¤éƳÆþ¤µ¤ì¤¿¡£¤³¤ì¤é¤Î¥×¥í¥È¥¿¥¤¥×¤Ï
64 .I <fenv.h>
65 ¤ËÃÖ¤«¤ì¤Æ¤¤¤ë¡£ FPU ¤Î´Ý¤á¥â¡¼¥É¤ÎÀ©¸æ¤Ë¤Ï
66 .IR fegetround ,
67 .I fesetround
68 ¤Ê¤É¤¬¡¢ÉâÆ°¾®¿ôÅÀ´ØÏ¢¤Î´Ä¶­¤Ë¤Ï
69 .IR fegetenv ,
70 .IR feholdexcept ,
71 .IR fesetenv ,
72 .I feupdateenv
73 ¤Ê¤É¤¬¡¢ FPU Îã³°½èÍý¤Ë¤Ï
74 .IR feclearexcept ,
75 .IR fegetexceptflag ,
76 .IR feraiseexcept ,
77 .IR fesetexceptflag ,
78 .I fetestexcept
79 ¤Ê¤É¤¬Æ³Æþ¤µ¤ì¤¿¡£
80 .PP
81 .\"O If direct access to the FPU control word is still needed, the
82 .\"O .B _FPU_GETCW
83 .\"O and
84 .\"O .B _FPU_SETCW
85 .\"O macros from
86 .\"O .I <fpu_control.h>
87 .\"O can be used.
88 FPU ¤Î¥³¥ó¥È¥í¡¼¥ë¥ï¡¼¥É¤Ø¤É¤¦¤·¤Æ¤âľÀÜ¥¢¥¯¥»¥¹¤¹¤ëɬÍפ¬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢
89 .I <fpu_control.h>
90 ¤Î
91 .B _FPU_GETCW
92 ¥Þ¥¯¥í¤È
93 .B _FPU_SETCW
94 ¥Þ¥¯¥í¤òÍѤ¤¤ë¤³¤È¤Ï²Äǽ¤Ç¤¢¤ë¡£
95 .\"O .SH EXAMPLE
96 .SH Îã
97 .B __setfpucw(0x1372)
98
99 .\"O Set FPU control word on the i386 architecture to
100 .\"O .br
101 .\"O      \- extended precision
102 .\"O .br
103 .\"O      \- rounding to nearest
104 .\"O .br
105 .\"O      \- exceptions on overflow, zero divide and NaN
106 ¤Ï¡¢i386¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ë¤ª¤±¤ë FPU ¤Î¥³¥ó¥È¥í¡¼¥ë¥ï¡¼¥É¤ò¡¢
107 .br
108      \- ³ÈÄ¥ÀºÅÙ
109 .br
110      \- ºÇ¤â¶á¤¤À°¿ô¤Ø´Ý¤á¤ë¡¢Ãæ´Ö¤Î¾ì¹ç¤Ï¶ö¿ô¤òÁªÂò¤¹¤ë¡£
111 .br
112      \- ·å°î¤ì¡¢0¤Ç½ü»»¡¢µÚ¤Ó̵¸úÃÍ(NaN)¤È¤­¤ËÎã³°¤òȯÀ¸
113 .br
114 ¤ËÀßÄꤹ¤ë¡£
115 .\"O .SH "SEE ALSO"
116 .SH ´ØÏ¢¹àÌÜ
117 .BR feclearexcept (3)
118 .br
119 .I <fpu_control.h>