一、常见宏
1.1 位掩码bitmask
c
//生成一个 "位掩码"(bitmask)
//h为高位,l为低位(注意是L的小写,不是数字1),且要求h>l,
//宏含义:bit(h)到bit(l)之间的(含h和l位)比特位置1,其余位置0
#define GENMASK(h, l) (((~0UL) << (l)) & (~0UL >> (sizeof(long) * 8 - 1 - (h))))