Implementation defined behavior control
提供: cppreference.com
< cpp | preprocessor
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
実装定義動作は
#pragma
ディレクティブによって制御されます.Original:
Implementation defined behavior is controlled by
#pragma
directive.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] 構文
#pragma pragma_params
|
|||||||||
[編集] 説明
プラグマディレクティブは、コンパイラの警告を無効にしたり、アラインメント要件の変更などのコンパイラの実装固有の動作を制御します。認識されないプラグマは無視されます.
Original:
Pragma directive controls implementation-specific behavior of the compiler, such as disabling compiler warnings or changing alignment requirements. Any pragma that is not recognized is ignored.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 標準プラグマ
次の3つのプラグマは、言語規格で定義されています
Original:
The following three pragmas are defined by the language standard:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
#pragma STDC FENV_ACCESS arg
|
(1) | ||||||||
#pragma STDC FP_CONTRACT arg
|
(2) | ||||||||
#pragma STDC CX_LIMITED_RANGE arg
|
(3) | ||||||||
argが次のいずれかの場所
1) ON
またはOFF
またはDEFAULT
. Original:
where arg is either
ON
or OFF
or DEFAULT
. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
ON
に設定した場合、プログラムはフラグをテストし、モード変更を覆すことができる最適化は(例えば、グローバル共通部分式の除去、コードの移動、および定数の畳み込み)は禁止されていることを意味浮動小数点環境を、アクセスまたは変更することをコンパイラに通知します。デフォルト値は実装定義され、通常OFF
.Original:
If set to
ON
, informs the compiler that the program will access or modify 浮動小数点環境, which means that optimizations that could subvert flag tests and mode changes (e.g., global common subexpression elimination, code motion, and constant folding) are prohibited. The default value is implementation-defined, usually OFF
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
式が書かれたとおりに正確に評価した場合に観察される丸め誤差や浮動小数点例外を省略する最適化である浮動小数点式の請負'は、許可します。デフォルト値は実装定義され、通常
3) ON
.Original:
Allows contracting of floating-point expressions, that is optimizations that omit rounding errors and floating-point exceptions that would be observed if the expression was evaluated exactly as written. The default value is implementation-defined, usually
ON
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
中間のオーバーフローの可能性にもかかわらず、乗算、除算、複素数の絶対値が簡素な数式を使用してもよいことをコンパイラに通知します。これらの関数に渡された値の範囲を制限することが期待されています。デフォルト値は
OFF
ですOriginal:
Informs the compiler that multiplication, division, and absolute value of complex numbers may use simplified mathematical formulas, despite the possibility of intermediate overflow. The range of the values passed to those function is expected to be limited. The default value is
OFF
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 外部リンク
- C++ pragmas in Visual Studio 2010
- PragmasGCC 4.6.2で受け入れOriginal:Pragmas accepted by GCC 4.6.2The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - General Purpose Pragmas in IBM AIX XL C/C++ V7.0
- Appendix B. PragmasのSun Studio 11 C + +ユーザーズガイドインチOriginal:Appendix B. Pragmas in Sun Studio 11 C++ User's GuideThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - Intel C++ compiler pragmas