code: function nbits(x) {
  	var n = 1, t;
  	if ((t = x >>> 16) != 0) {
  		x = t;
  		n += 16;
  	}
  	if ((t = x >> 8) != 0) {
  		x = t;
  		n += 8;
  	}
  	if ((t = x >> 4) != 0) {
  		x = t;
  		n += 4;
  	}
  	if ((t = x >> 2) != 0) {
  		x = t;
  		n += 2;
  	}
  	if ((t = x >> 1) != 0) {
  		x = t;
  		n += 1;
  	}
  	return n;
  }
docs: /* added by Recurity Labs