19 lines
365 B
C
19 lines
365 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))
|
|
|
|
#endif /* __CDEFS_H__ */
|
|
|