-relaxed_math [V2.00.00 or later]


This option generates an operation code for relaxed floating-point calculations.

[Specification format]

-relaxed_math

 

-

Interpretation when omitted

None

[Detailed description]

-

This option generates an operation code for floating-point calculations which are not strictly in accordance with the C-language standard or IEEE754 but are efficient.

-

The following options are assumed to be simultaneously specified.

-

-Xuse_fmaf

-

-use_recipf

-

If this option is specified more than once, it has the same meaning as when this option is specified once. No warning is output in this case.

[Remark]

When this option is specified, floating-point calculations are performed in the following manner and sometimes the operation result will differ from that obtained by calculations strictly in accordance with the C-language standard or IEEE754.

-

The meaning of the sign of 0.0 is ignored.

-

It is assumed that not-a-number is not input in comparison operations or other calculations.

-

Mathematical expressions using algebraic characteristics are deformed on the assumption that operations will not generate exceptions or precision errors.