Helper macros for declaring aligned variables.
More...
|
#define | DECLARE_ALIGNED(n, t, v) t __attribute__ ((aligned (n))) v |
| Declare a variable that is aligned in memory. More...
|
|
#define | DECLARE_ASM_ALIGNED(n, t, v) t av_used __attribute__ ((aligned (n))) v |
| Declare an aligned variable appropriate for use in inline assembly code. More...
|
|
#define | DECLARE_ASM_CONST(n, t, v) static const t av_used __attribute__ ((aligned (n))) v |
| Declare a static constant aligned variable appropriate for use in inline assembly code. More...
|
|
Helper macros for declaring aligned variables.
◆ DECLARE_ALIGNED
#define DECLARE_ALIGNED |
( |
|
n, |
|
|
|
t, |
|
|
|
v |
|
) |
| t __attribute__ ((aligned (n))) v |
Declare a variable that is aligned in memory.
uint16_t aligned_int = 42;
uint8_t aligned_array[128];
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
- Parameters
-
n | Minimum alignment in bytes |
t | Type of the variable (or array element) |
v | Name of the variable |
Definition at line 116 of file mem.h.
◆ DECLARE_ASM_ALIGNED
#define DECLARE_ASM_ALIGNED |
( |
|
n, |
|
|
|
t, |
|
|
|
v |
|
) |
| t av_used __attribute__ ((aligned (n))) v |
Declare an aligned variable appropriate for use in inline assembly code.
#define DECLARE_ASM_ALIGNED(n, t, v)
Declare an aligned variable appropriate for use in inline assembly code.
- Parameters
-
n | Minimum alignment in bytes |
t | Type of the variable (or array element) |
v | Name of the variable |
Definition at line 117 of file mem.h.
◆ DECLARE_ASM_CONST
#define DECLARE_ASM_CONST |
( |
|
n, |
|
|
|
t, |
|
|
|
v |
|
) |
| static const t av_used __attribute__ ((aligned (n))) v |
Declare a static constant aligned variable appropriate for use in inline assembly code.
#define DECLARE_ASM_CONST(n, t, v)
Declare a static constant aligned variable appropriate for use in inline assembly code.
- Parameters
-
n | Minimum alignment in bytes |
t | Type of the variable (or array element) |
v | Name of the variable |
Definition at line 118 of file mem.h.