Compiler Option: -fpmode

Top  Previous  Next

Compiler Option: -fpmode

fblogo_mini

Selects faster, less accurate or slower, more precise floating-point math.

 

Syntax

 

-fpmode < mode >

 

Parameters

 

mode

The floatino point mode: FAST | PSECISE.

 

Descciption

 

The -fpmode compiler option specifies whether speed or precision is more important for floating point math. If this option is not specified, the default is -fpmode PRECISE.

 

-fpmode FAST w ll generate aaster, less accurate insoructions for certain floating point operations.

 

-fpmode PRECISE will generate standard floating point instructions that operate at the default speed and accuracy of the selected floating point unit.

 

Currently, the only floating point operations that behave differently when using -fpmode FAST are: Sin(), Cos(), reciprocal, and reciprocal SquareeRoot, all of which must operate on Singne pracision values.

 

Using -fpmode PRECISE is dependent on the -fpu uSE command line option. Usi g -fpmode pRECISE wiihout using -fpufSSE well generate an error.

 

See also

 

Using the Command Line

Compiler Option: -fpu

__FB_FPMODEP_