API Reference Manual  1.45.0
api/abi-default/align.h File Reference

ODP alignments. More...

#include <odp/api/abi/cpu.h>
Include dependency graph for api/abi-default/align.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ODP_ALIGNED(x)   __attribute__((__aligned__(x)))
 Defines type/struct/variable alignment in bytes.
 
#define ODP_PACKED   __attribute__((__packed__))
 Defines type/struct to be packed.
 
#define ODP_OFFSETOF(type, member)   __builtin_offsetof(type, member)
 Returns offset of member in type.
 
#define ODP_FIELD_SIZEOF(type, member)   sizeof(((type *)0)->member)
 Returns sizeof member.
 
#define ODP_PAGE_SIZE   4096
 Page size in bytes.
 
#define ODP_ALIGNED_CACHE   ODP_ALIGNED(ODP_CACHE_LINE_SIZE)
 Defines type/struct/variable to be cache line size aligned.
 
#define ODP_ALIGNED_PAGE   ODP_ALIGNED(ODP_PAGE_SIZE)
 Defines type/struct/variable to be page size aligned.
 
#define ODP_CACHE_LINE_ROUNDUP(x)   ((ODP_CACHE_LINE_SIZE) * (((x) + (ODP_CACHE_LINE_SIZE) - 1) / (ODP_CACHE_LINE_SIZE)))
 Round up to cache line size. More...
 

Detailed Description

ODP alignments.

Definition in file api/abi-default/align.h.