# FENV_ACCESS Pragma

Attention: This pragma is implemented only by MPLAB XC32 compilers.

This pragma informs the implementation that the program might access the floating-point environment to test floating-point status flags or run under non-default floating-point control modes. When set to ON, compiler optimizations that affect floating-point status flags tests might be disabled.

Include

<fenv.h>

Usage

#pragma STDC FENV_ACCESS ON|OFF|DEFAULT.

Remarks

When placed outside external declarations or preceding all explicit declarations and statements inside a compound statement, the pragma takes effect from its occurrence until another FENV_ACCESS pragma is encountered, or until the end of the translation unit. When placed inside a compound statement, the pragma takes effect from its occurrence until another FENV_ACCESS pragma is encountered (including within a nested compound statement), or until the end of the compound statement; at the end of a compound statement the state for the pragma is restored to that just before the compound statement. In any other context. the behavior of this pragma is undefined.