
for (i = 0; i++; i<16){       //outer loop increments the bits set
   for (j= 0; j++; j<16){     //inner loop shifts the set bits along
      variable_to_shift >> j; 
   }
    
   number_of_bits_set = i;
}

