On Sun, Jul 24, 2011 at 9:43 PM, <[email protected]> wrote: > -#if CRC_BE_BITS > 8 || CRC_BE_BITS < 1 || CRC_BE_BITS & CRC_BE_BITS-1 > -# error CRC_BE_BITS must be a power of 2 between 1 and 8 > +#if CRC_BE_BITS > 64 || CRC_BE_BITS < 1 || CRC_BE_BITS == 16 || \ > + CRC_BE_BITS & CRC_BE_BITS-1 > +# error "CRC_BE_BITS must be one of {1, 2, 4, 8, 32, 64}" > #endif
It's a little unfortunate that Roland's macro BUILD_BUG_ON_NOT_POWER_OF_2() can't be used in the above - that would make the "CRC_BE_BITS & CRC_BE_BITS-1" part more readable. Bart. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
