Remove code from floating-point to integer conversions that wraps out-of-range values - Control generation of wrapping code that handles out-of-range floating-point to integer conversion values - MATLAB (original) (raw)

Main Content

Control generation of wrapping code that handles out-of-range floating-point to integer conversion values

Model Configuration Pane: Code Generation / Optimization

Description

The Remove code from floating-point to integer conversions that wraps out-of-range values parameter specifies whether to generate wrapping code that handles out-of-range floating-point to integer conversion results.

Settings

off (default) | on

On

Removes code when out-of-range conversions occur. Select this check box if code efficiency is critical to your application and the following conditions are true for at least one block in the model:

Caution

Execution of generated code might not produce the same results as simulation.

Off

Results for simulation and execution of generated code match when out-of-range conversions occur. The generated code is larger than when you select this check box.

Tips

Application Setting
Debugging Off
Traceability Off
Efficiency On (execution, ROM), No impact (RAM)
Safety precaution No impact

Programmatic Use

Parameter: EfficientFloat2IntCast
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2006a