Go to the documentation of this file.
14# define _AC(num, suf) num
16# define _AC(num, suf) __tok(num, suf)
18# define __tok(a, b) (a ## b)
23#define KB(num) (_AC(num, ULL) << 10)
26#define MB(num) (_AC(num, ULL) << 20)
29#define GB(num) (_AC(num, ULL) << 30)
32#define TB(num) (_AC(num, ULL) << 40)
38#define IS_ALIGNED(val, align) (((val) & ((align) - 1)) == 0)
40#define MASK_EXTR(v, m) (((v) & (m)) / ((m) & -(m)))
41#define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m))
48#define _p(v) ((void*)(unsigned long)(v))
53#define _u(v) ((unsigned long)(v))