ieeefp

Controls whether floating point comparisons and some other optimizations are performed as per the IEEE standard. The default is off.

Syntax

#pragma ieeefp on | off

Parameters

on

Floating-point comparisons are done using these conditions:

off

Floating-point comparisons are done using IEEE standards.

Targets
Intel x86
Remarks

Use #pragma ieeefp on to reduce floating-point accuracy and increase calculation speed. The same effect can be achieved in the command-line using -opt ieeefp or -fast_math off commands.

Use #pragma ieeefp off to maximize floating-point accuracy and decrease calculation speed. The same effect can be achieved in the command-line using -opt noieeefp or -fast_math on commands.

This pragma corresponds to the Relax IEEE floating point setting in the processor-specific CodeGen panel. To check this setting, use __option (ieeefp), described in Checking Settings. By default, this setting is on.