]> Git Repo - J-linux.git/blob - tools/include/linux/align.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / tools / include / linux / align.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef _TOOLS_LINUX_ALIGN_H
4 #define _TOOLS_LINUX_ALIGN_H
5
6 #include <uapi/linux/const.h>
7
8 #define ALIGN(x, a)             __ALIGN_KERNEL((x), (a))
9 #define ALIGN_DOWN(x, a)        __ALIGN_KERNEL((x) - ((a) - 1), (a))
10 #define IS_ALIGNED(x, a)        (((x) & ((typeof(x))(a) - 1)) == 0)
11
12 #endif /* _TOOLS_LINUX_ALIGN_H */
This page took 0.022912 seconds and 4 git commands to generate.