名前空間
変種
操作

fegetexceptflag, fesetexceptflag

提供: cppreference.com
< c‎ | numeric‎ | fenv

Defined in header <<fenv.h>>
int fegetexceptflag( fexcept_t* flagp, int excepts );
(1)
int fesetexceptflag( const fexcept_t* flagp, int excepts );
(2)
1)
ビット単位の論理和(OR)exceptsのあるビットマスク引数小数点例外マクロが浮かんでいます、に記載されている浮動小数点例外フラグの完全な内容を取得しようとし.
Original:
Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the 小数点例外マクロが浮かんでいます.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
浮動小数点環境にexceptsからflagpに記載されている浮動小数点例外フラグの全内容をコピーしようとします。 、任意の例外を発生させるだけのフラグを変更しません.
Original:
Attempts to copy the full contents of the floating-point exception flags that are listed in excepts from flagp into the floating-point environment. Does not raise any exceptions, only modifies the flags.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
浮動小数点例外フラグの完全な内容は、例外が発生したか、またはクリアされるかどうかを示すブール値であるとは限りません。例えば、それはブールステータスと例外を発生させたコードのアドレスを持つstructかもしれません。これらの関数はすべて、このようなコンテンツを入手し、/取得、実​​装定義の形式でflagpに保管.
Original:
The full contents of a floating-point exception flag is not necessarily a boolean value indicating whether the exception is raised or cleared. For example, it may be a struct which includes the boolean status and the address of the code that triggered the exception. These functions obtain all such content and obtain/store it in flagp in implementation-defined format.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

flagp -
フラグが格納されるか、またはから読み込まれますfexcept_tオブジェクトへのポインタ
Original:
pointer to an fexcept_t object where the flags will be stored or read from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
excepts -
get / setのために例外フラグをリストするビットマスク
Original:
bitmask listing the exception flags to get/set
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

0成功した場合には、ゼロ以外のその他のとき.
Original:
0 on success, non-zero otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]

[編集] も参照してください

C++ documentation for fegetexceptflag, fesetexceptflag