]>
git.proxmox.com Git - ceph.git/blob - ceph/src/zstd/contrib/linux-kernel/test/include/linux/kernel.h
1 #ifndef LINUX_KERNEL_H_
2 #define LINUX_KERNEL_H_
4 #define ALIGN(x, a) ({ \
5 typeof(x) const __xe = (x); \
6 typeof(a) const __ae = (a); \
7 typeof(a) const __m = __ae - 1; \
8 typeof(x) const __r = __xe & __m; \
9 __xe + (__r ? (__ae - __r) : 0); \
12 #define PTR_ALIGN(p, a) (typeof(p))ALIGN((unsigned long long)(p), (a))
14 #define current Something that doesn't compile :)
16 #endif // LINUX_KERNEL_H_