Home | History | Annotate | Download | only in dec

Lines Matching refs:len

17    * Returns reverse(reverse(key, len) + 1, len).
19 * <p> reverse(key, len) is the bit-wise reversal of the len least significant bits of key.
21 private static int getNextKey(int key, int len) {
22 int step = 1 << (len - 1);
43 * @param len code length of the next processed symbol.
46 private static int nextTableBitSize(int[] count, int len, int rootBits) {
47 int left = 1 << (len - rootBits);
48 while (len < MAX_LENGTH) {
49 left -= count[len];
53 len++;
56 return len - rootBits;
78 for (int len = 1; len < MAX_LENGTH; len++) {
79 offset[len + 1] = offset[len] + count[len];
104 for (int len = 1, step = 2; len <= rootBits; len++, step <<= 1) {
105 for (; count[len] > 0; count[len]--) {
106 replicateValue(rootTable, tableOffset + key, step, tableSize, len << 16 | sorted[symbol++]);
107 key = getNextKey(key, len);
115 for (int len = rootBits + 1, step = 2; len <= MAX_LENGTH; len++, step <<= 1) {
116 for (; count[len] > 0; count[len]--) {
119 tableBits = nextTableBitSize(count, len, rootBits);
127 (len - rootBits) << 16 | sorted[symbol++]);
128 key = getNextKey(key, len);