21 lines
423 B
C
21 lines
423 B
C
|
|
#ifndef __CDEFS_H__
|
|
#define __CDEFS_H__
|
|
|
|
#include <stddef.h>
|
|
|
|
#define PACKED __attribute__((__packed__))
|
|
#define PERCORE __attribute__((section(".data.percore")))
|
|
|
|
#define INLINE inline
|
|
#define NO_RETURN __attribute__((noreturn))
|
|
|
|
#define UNREACHABLE __builtin_unreachable
|
|
|
|
#define ROUNDUP(_x, _n) (((_x) + (_n) - 1) & ~((_n) - 1))
|
|
|
|
#define __hidden __attribute__((__visibility__("hidden")))
|
|
|
|
#endif /* __CDEFS_H__ */
|
|
|