1 .\" Written Sat Mar 8 10:35:08 MEZ 1997 by
2 .\" J. "MUFTI" Scheurich (mufti@csv.ica.uni-stuttgart.de)
4 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
5 .\" This page is licensed under the GNU General Public License
8 .\"*******************************************************************
10 .\" This file was generated with po4a. Translate the source file.
12 .\"*******************************************************************
13 .TH __SETFPUCW 3 2012\-12\-31 Linux "Linux Programmer's Manual"
15 __setfpucw \- i386 アーキテクチャにおける FPU のコントロールワードの設定 (obsolete)
17 \fB#include <i386/fpu_control.h>\fP
19 \fBvoid __setfpucw(unsigned short \fP\fIcontrol_word\fP\fB);\fP
21 \fB__setfpucw\fP() は、i386アーキテクチャにおいて \fIcontrol_word\fP を FPU (floating\-point
22 unit) のレジスタに転送する。 これは浮動小数点演算の精度、丸め方、 および浮動小数点例外を制御するのに使われる。
26 As of glibc 2.1 this function does not exist anymore. There are new
27 functions from C99, with prototypes in \fI<fenv.h>\fP, to control FPU
28 rounding modes, like \fBfegetround\fP(3), \fBfesetround\fP(3), and the
29 floating\-point environment, like \fBfegetenv\fP(3), \fBfeholdexcept\fP(3),
30 \fBfesetenv\fP(3), \fBfeupdateenv\fP(3), and FPU exception handling, like
31 \fBfeclearexcept\fP(3), \fBfegetexceptflag\fP(3), \fBferaiseexcept\fP(3),
32 \fBfesetexceptflag\fP(3), and \fBfetestexcept\fP(3).
34 FPU のコントロールワードへどうしても直接アクセスする必要がある場合には、 \fI<fpu_control.h>\fP の
35 \fB_FPU_GETCW\fP マクロと \fB_FPU_SETCW\fP マクロを用いることは可能である。
37 \fB__setfpucw(0x1372)\fP
39 は、i386アーキテクチャにおける FPU のコントロールワードを、
43 \- 最も近い整数へ丸める、中間の場合は偶数を選択する。
45 \- 桁溢れ、0で除算、及び無効値(NaN)ときに例外を発生に設定する。
47 \fBfeclearexcept\fP(3)
51 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
52 である。プロジェクトの説明とバグ報告に関する情報は
53 http://www.kernel.org/doc/man\-pages/ に書かれている。