Is it possible to specify the pointer alignment of a pointer-typed function argument in function declaration in C?
For example,
void f(void *p);
How can I specify in the function signature that p’s address should be a multiple of 16?
It seems __attribute__ ((aligned (16)))
is a relevant one, but it specifies the alignment of &p
, but not p
itself.
1