0
GGGiovanny Gongora
Get the length of bits of a variable
0 Comments
#include <iostream> unsigned bits, var = (x < 0) ? -x : x; for(bits = 0; var != 0; ++bits) var >>= 1;