|
sarmfsw: SMFSW Toolbox (desinged for ARM / compatible with other 8b/16b/32b platforms) 4.0
SMFSW collection of miscellaneous functions \& macros (desinged for ARM / compatible with other 8b/16b/32b platforms)
|
Linearization inlines. More...

Data Structures | |
| struct | sLinearFlexArray |
| Linearization flexible member array structure. More... | |
Macros | |
| #define | LINEAR_TAB(name, nbElem) |
Pattern tab typedef declaration with name catenation and nbElem max array elements. | |
| #define | LINEAR_EVAL(name, val) |
| Macro to call linearization on a LINEAR_TAB or sLinearFlexArray typedef. | |
Functions | |
| SDWORD | linearization_eval (const SDWORD array[][2], const DWORD nb, const SDWORD val) |
| 2 dimensional linearization | |
| SDWORD | linearization_eval_flex (const sLinearFlexArray *const pArray, const SDWORD val) |
| 2 dimensional linearization (flexible member array) | |
Linearization inlines.
| #define LINEAR_EVAL | ( | name, | |
| val ) |
Macro to call linearization on a LINEAR_TAB or sLinearFlexArray typedef.
name wouldn't produce the desired structured access expansion.| #define LINEAR_TAB | ( | name, | |
| nbElem ) |
Pattern tab typedef declaration with name catenation and nbElem max array elements.
# and ## preprocessor operators (misra-c2012-20.10)2 dimensional linearization
| [in] | array | - pointer to 2 dimensional array |
| [in] | nb | - Number of items of the array |
| [in] | val | - Value to evaluate |

|
inline |
2 dimensional linearization (flexible member array)
| [in] | pArray | - pointer to flexible member array structure |
| [in] | val | - Value to evaluate |
