27c7e6d4802717215792fe68cd4c3234ebaa0ad0
4 #if defined(CONFIG_LTT) && defined(CONFIG_LTT_ALIGNMENT)
7 * Calculate the offset needed to align the type.
8 * size_of_type must be non-zero.
10 static inline unsigned int ltt_align(size_t align_drift
, size_t size_of_type
)
12 size_t alignment
= min(sizeof(void *), size_of_type
);
13 return (alignment
- align_drift
) & (alignment
- 1);
15 /* Default arch alignment */
18 static inline int ltt_get_alignment(void)
20 return sizeof(void *);
25 static inline unsigned int ltt_align(size_t align_drift
,
31 #define LTT_ALIGN __attribute__((packed))
33 static inline int ltt_get_alignment(void)
37 #endif /* defined(CONFIG_LTT) && defined(CONFIG_LTT_ALIGNMENT) */
39 #endif /* UST_CORE_H */
This page took 0.036381 seconds and 4 git commands to generate.