We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19abcd7 commit 229f587Copy full SHA for 229f587
include/linux/kernel.h
@@ -34,6 +34,7 @@
34
#define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a))
35
#define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask))
36
#define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a)))
37
+#define PTR_ALIGN_DOWN(p, a) ((typeof(p))ALIGN_DOWN((unsigned long)(p), (a)))
38
#define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
39
40
/* generic data direction definitions */
0 commit comments