metal-cos/sys/include/cdefs.h
2014-09-04 23:26:02 -07:00

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__ */