Skip to main content

IAR Embedded Workbench for Arm 9.70.x

STDC FP_CONTRACT

In this section:
Syntax
#pragma STDC FP_CONTRACT {ON|OFF|DEFAULT}
Parameters

ON

The compiler is allowed to contract floating-point expressions.

OFF

The compiler is not allowed to contract floating-point expressions.

DEFAULT

Sets the default behavior, that is ON. To change the default behavior, use the option ‑‑no_default_fp_contract.

Description

Use this pragma directive to specify whether the compiler is allowed to contract floating-point expressions or not. This directive is required by Standard C.

Example
#pragma STDC FP_CONTRACT ON
See also

‑‑no_default_fp_contract