Specify whether to generate code that guards against division by zero and
INT_MIN/-1
operations for integers and fixed-point data.
Category: Optimization
Default: Off
Does not generate code that guards against division by zero and
INT_MIN/-1
operations for integers and fixed-point data. To
retain bit-true agreement between simulation results and results from generated code,
check that your model does not produce division by zero or
INT_MIN/-1
operations, where the quotient cannot be represented
in the data type.
Generates code that guards against division by zero and
INT_MIN/-1
operations for integers and fixed-point data.
This parameter appears only for ERT-based targets.
This parameter requires a Embedded Coder® license when generating code.
Parameter:
NoFixptDivByZeroProtection |
Value:
'on' | 'off' |
Default:
'on' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | On (execution, ROM) |
Safety precaution | Off |