Use memset to initialize floats and doubles to 0.0
Assignment of float and double zero with memset
Description
App Configuration Pane: Advanced
Configuration Objects: coder.MexCodeConfig
| coder.CodeConfig
| coder.EmbeddedCodeConfig
The Use memset to initialize floats and doubles to 0.0 parameter
specifies whether to use the memset
optimization for assignment of
float and double zero.
Settings
- On
This value is the default value.
If possible, the code generator uses the
memset
optimization for assignment of floating-point zero to consecutive array elements. To assign consecutive array elements, thememset
optimization uses amemset
call. When the number of elements to assign is known at compile time, the code generator uses the Memcpy threshold (bytes) property to determine whether to use the optimization.- Off
The code generator does not use the
memset
optimization for assignment of float and double zero to consecutive array elements.
Programmatic Use
Property:
InitFltsAndDblsToZero |
Values: true |
false |
Default: true |
Version History
Introduced in R2011a