Contributors: 12
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Andy Shevchenko |
10 |
14.71% |
1 |
7.14% |
Kishon Vijay Abraham I |
9 |
13.24% |
1 |
7.14% |
Matthew Wilcox |
9 |
13.24% |
1 |
7.14% |
Krzysztof Kozlowski |
9 |
13.24% |
1 |
7.14% |
Kamezawa Hiroyuki |
8 |
11.76% |
1 |
7.14% |
Linus Torvalds (pre-git) |
7 |
10.29% |
2 |
14.29% |
Alexey Dobriyan |
5 |
7.35% |
2 |
14.29% |
Linus Torvalds |
4 |
5.88% |
1 |
7.14% |
Andrew Morton |
4 |
5.88% |
1 |
7.14% |
zijun_hu |
1 |
1.47% |
1 |
7.14% |
Herbert Xu |
1 |
1.47% |
1 |
7.14% |
Greg Kroah-Hartman |
1 |
1.47% |
1 |
7.14% |
Total |
68 |
|
14 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_ALIGN_H
#define _LINUX_ALIGN_H
#include <linux/const.h>
/* @a is a power of 2 value */
#define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
#define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a))
#define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask))
#define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a)))
#define PTR_ALIGN_DOWN(p, a) ((typeof(p))ALIGN_DOWN((unsigned long)(p), (a)))
#define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
#endif /* _LINUX_ALIGN_H */