brief Create a contiguous bitmask starting at bit position p l and ending at position p h #define GENMASKh l ~0UL - 1UL l + 1 & ~0UL BITS_PER_LONG - 1 - h当h=10l=6时生成的结果是什么
结果为0b0001111111000000,即从第6位到第10位都为1,其余位为0的掩码。
原文地址: https://www.cveoy.top/t/topic/hdHj 著作权归作者所有。请勿转载和采集!