int bitlength()...{ int i; unsigned char j; i = 0; j = ~0; while(j != 0) ...{ j = j >> 1; ++i; } return i;}