private int count1_bitcount(int [] ix, EChannel cod_info) {
		int p, i, k;
		int signbits;
		int sum0 = 0, sum1 = 0;
		int count1End = bigvalues_region + count1_region;

		for(i = bigvalues_region, k=0; k < count1End; i+=4, k++) {
			v = Math.abs(ix[i]);
			w = Math.abs(ix[i+1]);
			x = Math.abs(ix[i+2]);
			y = Math.abs(ix[i+3]);

			p = signbits = 0;
			if(v!=0) { signbits++; p |= 1; }
			if(w!=0) { signbits++; p |= 2; }
			if(x!=0) { signbits++; p |= 4; }
			if(y!=0) { signbits++; p |= 8; }

			sum0 += signbits;
			sum1 += signbits;

			sum0 += hlen[32][p];
			sum1 += hlen[33][p];
		}

		if(sum0 < sum1) {
			cod_info.count1table_select = 0;
			return sum0;
		} else {
			cod_info.count1table_select = 1;
			return sum1;
		}
	}