Largest atomic size: floating-point
R2026bLargest floating-point data type selected hardware can atomically load and store
Model Configuration Pane: Hardware Implementation
Description
The Largest atomic size: floating-point parameter specifies the largest floating-point data type that can be atomically loaded and stored on the selected hardware. Use this parameter, where possible, to remove unnecessary double-buffering or unnecessary semaphore protection, based on data size, in generated multirate code.
Dependencies
This parameter is enabled only if you can modify it for the selected hardware.
Settings
Float (default) |
Double |
NoneSelecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.
-
Float Specifies that
floatis the largest floating-point data type that can be atomically loaded and stored on the hardware.-
Double Specifies that
doubleis the largest floating-point data type that can be atomically loaded and stored on the hardware.-
None Specifies that there is no applicable setting or not to use this parameter in generating multirate code.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | Target specific |
| Safety precaution |
No recommendation for simulation without code generation. |
Programmatic Use
Parameter:
ProdLargestAtomicFloat
|
| Type: string | character vector |
Value:
"Float" | "Double" | "None"
|
Default:
'Float'
|
Version History
Introduced in R2006b
See Also
Topics
- Hardware Implementation Pane
- Hardware Implementation Options (Simulink Coder)
- Specifying Production Hardware Characteristics (Simulink Coder)
- Verification of Code Generation Assumptions (Embedded Coder)