Give that man a cigar!Quote:
Originally Posted by King Mir
Or as I might say, these are several methods that result in "a value with only the most significant bit set".
Much Ado About Bits
#define DECIMALS(itype) \
sizeof(itype) * (CHAR_BIT * 12655ul) / 42039 ((itype) -1 < 0) + 1 )