1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_LINUX_CONST_H 8 #define _UAPI_LINUX_CONST_H 9 #ifdef __ASSEMBLY__ 10 #define _AC(X,Y) X 11 #define _AT(T,X) X 12 #else 13 #define __AC(X,Y) (X ##Y) 14 #define _AC(X,Y) __AC(X, Y) 15 #define _AT(T,X) ((T) (X)) 16 #endif 17 #define _UL(x) (_AC(x, UL)) 18 #define _ULL(x) (_AC(x, ULL)) 19 #define _BITUL(x) (_UL(1) << (x)) 20 #define _BITULL(x) (_ULL(1) << (x)) 21 #define __ALIGN_KERNEL(x,a) __ALIGN_KERNEL_MASK(x, (__typeof__(x)) (a) - 1) 22 #define __ALIGN_KERNEL_MASK(x,mask) (((x) + (mask)) & ~(mask)) 23 #define __KERNEL_DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) 24 #endif 25