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
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
9 .\" Updated Wed Sep 20 2000 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
11 .\"WORD: (floating-point) exception (ÉâÆ°¾®¿ôÅÀ) Îã³°
12 .\"WORD: rounding ´Ý¤á
14 .TH __SETFPUCW 3 1997-03-08 "Linux" "Linux Programmer's Manual"
17 .\"O __setfpucw \- set FPU control word on i386 architecture (obsolete)
18 __setfpucw \- i386 ¥¢¡¼¥¥Æ¥¯¥Á¥ã¤Ë¤ª¤±¤ë FPU
19 ¤Î¥³¥ó¥È¥í¡¼¥ë¥ï¡¼¥É¤ÎÀßÄê (obsolete)
22 .B #include <i386/fpu_control.h>
24 .BI "void __setfpucw(unsigned short " control_word );
27 .\"O .BR __setfpucw ()
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.
34 ¤Ï¡¢i386¥¢¡¼¥¥Æ¥¯¥Á¥ã¤Ë¤ª¤¤¤Æ
36 ¤ò FPU (floating-point unit) ¤Î¥ì¥¸¥¹¥¿¤ËžÁ÷¤¹¤ë¡£
37 ¤³¤ì¤ÏÉâÆ°¾®¿ôÅÀ±é»»¤ÎÀºÅÙ¡¢´Ý¤áÊý¡¢
38 ¤ª¤è¤ÓÉâÆ°¾®¿ôÅÀÎã³°¤òÀ©¸æ¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¡£
39 .\"O .SH CONFORMING TO
41 .\"O This function was a nonstandard GNU extension.
42 ¤³¤Î´Ø¿ô¤ÏÈóɸ½à¤Ç GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
45 .\"O As of glibc 2.1 this function does not exist anymore.
46 .\"O There are new functions from C99, with prototypes in
48 .\"O to control FPU rounding modes, like
51 .\"O and the floating-point environment, like
53 .\"O .IR feholdexcept ,
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 ¤«¤éƳÆþ¤µ¤ì¤¿¡£¤³¤ì¤é¤Î¥×¥í¥È¥¿¥¤¥×¤Ï
65 ¤ËÃÖ¤«¤ì¤Æ¤¤¤ë¡£ FPU ¤Î´Ý¤á¥â¡¼¥É¤ÎÀ©¸æ¤Ë¤Ï
68 ¤Ê¤É¤¬¡¢ÉâÆ°¾®¿ôÅÀ´ØÏ¢¤Î´Ä¶¤Ë¤Ï
73 ¤Ê¤É¤¬¡¢ FPU Îã³°½èÍý¤Ë¤Ï
81 .\"O If direct access to the FPU control word is still needed, the
86 .\"O .I <fpu_control.h>
88 FPU ¤Î¥³¥ó¥È¥í¡¼¥ë¥ï¡¼¥É¤Ø¤É¤¦¤·¤Æ¤âľÀÜ¥¢¥¯¥»¥¹¤¹¤ëɬÍפ¬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢
94 ¥Þ¥¯¥í¤òÍѤ¤¤ë¤³¤È¤Ï²Äǽ¤Ç¤¢¤ë¡£
99 .\"O Set FPU control word on the i386 architecture to
101 .\"O \- extended precision
103 .\"O \- rounding to nearest
105 .\"O \- exceptions on overflow, zero divide and NaN
106 ¤Ï¡¢i386¥¢¡¼¥¥Æ¥¯¥Á¥ã¤Ë¤ª¤±¤ë FPU ¤Î¥³¥ó¥È¥í¡¼¥ë¥ï¡¼¥É¤ò¡¢
110 \- ºÇ¤â¶á¤¤À°¿ô¤Ø´Ý¤á¤ë¡¢Ãæ´Ö¤Î¾ì¹ç¤Ï¶ö¿ô¤òÁªÂò¤¹¤ë¡£
112 \- ·å°î¤ì¡¢0¤Ç½ü»»¡¢µÚ¤Ó̵¸úÃÍ(NaN)¤È¤¤ËÎã³°¤òȯÀ¸
117 .BR feclearexcept (3)