lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1376305 [34/37] - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/
Date Wed, 22 Aug 2012 23:13:42 GMT
Added: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked63.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked63.java?rev=1376305&view=auto
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked63.java (added)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked63.java Wed Aug 22 23:13:40 2012
@@ -0,0 +1,887 @@
+// This file has been automatically generated, DO NOT EDIT
+
+package org.apache.lucene.util.packed;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Efficient sequential read/write of packed integers.
+ */
+final class BulkOperationPacked63 extends BulkOperation {
+    public int blockCount() {
+      return 63;
+    }
+
+    public int valueCount() {
+      return 64;
+    }
+
+    public void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {
+      throw new UnsupportedOperationException();
+    }
+
+    public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {
+      assert blocksOffset + iterations * blockCount() <= blocks.length;
+      assert valuesOffset + iterations * valueCount() <= values.length;
+      for (int i = 0; i < iterations; ++i) {
+        final long block0 = blocks[blocksOffset++];
+        values[valuesOffset++] = block0 >>> 1;
+        final long block1 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block0 & 1L) << 62) | (block1 >>> 2);
+        final long block2 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block1 & 3L) << 61) | (block2 >>> 3);
+        final long block3 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block2 & 7L) << 60) | (block3 >>> 4);
+        final long block4 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block3 & 15L) << 59) | (block4 >>> 5);
+        final long block5 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block4 & 31L) << 58) | (block5 >>> 6);
+        final long block6 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block5 & 63L) << 57) | (block6 >>> 7);
+        final long block7 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block6 & 127L) << 56) | (block7 >>> 8);
+        final long block8 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block7 & 255L) << 55) | (block8 >>> 9);
+        final long block9 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block8 & 511L) << 54) | (block9 >>> 10);
+        final long block10 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block9 & 1023L) << 53) | (block10 >>> 11);
+        final long block11 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block10 & 2047L) << 52) | (block11 >>> 12);
+        final long block12 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block11 & 4095L) << 51) | (block12 >>> 13);
+        final long block13 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block12 & 8191L) << 50) | (block13 >>> 14);
+        final long block14 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block13 & 16383L) << 49) | (block14 >>> 15);
+        final long block15 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block14 & 32767L) << 48) | (block15 >>> 16);
+        final long block16 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block15 & 65535L) << 47) | (block16 >>> 17);
+        final long block17 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block16 & 131071L) << 46) | (block17 >>> 18);
+        final long block18 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block17 & 262143L) << 45) | (block18 >>> 19);
+        final long block19 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block18 & 524287L) << 44) | (block19 >>> 20);
+        final long block20 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block19 & 1048575L) << 43) | (block20 >>> 21);
+        final long block21 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block20 & 2097151L) << 42) | (block21 >>> 22);
+        final long block22 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block21 & 4194303L) << 41) | (block22 >>> 23);
+        final long block23 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block22 & 8388607L) << 40) | (block23 >>> 24);
+        final long block24 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block23 & 16777215L) << 39) | (block24 >>> 25);
+        final long block25 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block24 & 33554431L) << 38) | (block25 >>> 26);
+        final long block26 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block25 & 67108863L) << 37) | (block26 >>> 27);
+        final long block27 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block26 & 134217727L) << 36) | (block27 >>> 28);
+        final long block28 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block27 & 268435455L) << 35) | (block28 >>> 29);
+        final long block29 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block28 & 536870911L) << 34) | (block29 >>> 30);
+        final long block30 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block29 & 1073741823L) << 33) | (block30 >>> 31);
+        final long block31 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block30 & 2147483647L) << 32) | (block31 >>> 32);
+        final long block32 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block31 & 4294967295L) << 31) | (block32 >>> 33);
+        final long block33 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block32 & 8589934591L) << 30) | (block33 >>> 34);
+        final long block34 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block33 & 17179869183L) << 29) | (block34 >>> 35);
+        final long block35 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block34 & 34359738367L) << 28) | (block35 >>> 36);
+        final long block36 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block35 & 68719476735L) << 27) | (block36 >>> 37);
+        final long block37 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block36 & 137438953471L) << 26) | (block37 >>> 38);
+        final long block38 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block37 & 274877906943L) << 25) | (block38 >>> 39);
+        final long block39 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block38 & 549755813887L) << 24) | (block39 >>> 40);
+        final long block40 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block39 & 1099511627775L) << 23) | (block40 >>> 41);
+        final long block41 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block40 & 2199023255551L) << 22) | (block41 >>> 42);
+        final long block42 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block41 & 4398046511103L) << 21) | (block42 >>> 43);
+        final long block43 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block42 & 8796093022207L) << 20) | (block43 >>> 44);
+        final long block44 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block43 & 17592186044415L) << 19) | (block44 >>> 45);
+        final long block45 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block44 & 35184372088831L) << 18) | (block45 >>> 46);
+        final long block46 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block45 & 70368744177663L) << 17) | (block46 >>> 47);
+        final long block47 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block46 & 140737488355327L) << 16) | (block47 >>> 48);
+        final long block48 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block47 & 281474976710655L) << 15) | (block48 >>> 49);
+        final long block49 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block48 & 562949953421311L) << 14) | (block49 >>> 50);
+        final long block50 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block49 & 1125899906842623L) << 13) | (block50 >>> 51);
+        final long block51 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block50 & 2251799813685247L) << 12) | (block51 >>> 52);
+        final long block52 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block51 & 4503599627370495L) << 11) | (block52 >>> 53);
+        final long block53 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block52 & 9007199254740991L) << 10) | (block53 >>> 54);
+        final long block54 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block53 & 18014398509481983L) << 9) | (block54 >>> 55);
+        final long block55 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block54 & 36028797018963967L) << 8) | (block55 >>> 56);
+        final long block56 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block55 & 72057594037927935L) << 7) | (block56 >>> 57);
+        final long block57 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block56 & 144115188075855871L) << 6) | (block57 >>> 58);
+        final long block58 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block57 & 288230376151711743L) << 5) | (block58 >>> 59);
+        final long block59 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block58 & 576460752303423487L) << 4) | (block59 >>> 60);
+        final long block60 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block59 & 1152921504606846975L) << 3) | (block60 >>> 61);
+        final long block61 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block60 & 2305843009213693951L) << 2) | (block61 >>> 62);
+        final long block62 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block61 & 4611686018427387903L) << 1) | (block62 >>> 63);
+        values[valuesOffset++] = block62 & 9223372036854775807L;
+      }
+    }
+
+    public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {
+      assert blocksOffset + 8 * iterations * blockCount() <= blocks.length;
+      assert valuesOffset + iterations * valueCount() <= values.length;
+      for (int i = 0; i < iterations; ++i) {
+        final long byte0 = blocks[blocksOffset++] & 0xFF;
+        final long byte1 = blocks[blocksOffset++] & 0xFF;
+        final long byte2 = blocks[blocksOffset++] & 0xFF;
+        final long byte3 = blocks[blocksOffset++] & 0xFF;
+        final long byte4 = blocks[blocksOffset++] & 0xFF;
+        final long byte5 = blocks[blocksOffset++] & 0xFF;
+        final long byte6 = blocks[blocksOffset++] & 0xFF;
+        final long byte7 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte0 << 55) | (byte1 << 47) | (byte2 << 39) | (byte3 << 31) | (byte4 << 23) | (byte5 << 15) | (byte6 << 7) | (byte7 >>> 1);
+        final long byte8 = blocks[blocksOffset++] & 0xFF;
+        final long byte9 = blocks[blocksOffset++] & 0xFF;
+        final long byte10 = blocks[blocksOffset++] & 0xFF;
+        final long byte11 = blocks[blocksOffset++] & 0xFF;
+        final long byte12 = blocks[blocksOffset++] & 0xFF;
+        final long byte13 = blocks[blocksOffset++] & 0xFF;
+        final long byte14 = blocks[blocksOffset++] & 0xFF;
+        final long byte15 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte7 & 1) << 62) | (byte8 << 54) | (byte9 << 46) | (byte10 << 38) | (byte11 << 30) | (byte12 << 22) | (byte13 << 14) | (byte14 << 6) | (byte15 >>> 2);
+        final long byte16 = blocks[blocksOffset++] & 0xFF;
+        final long byte17 = blocks[blocksOffset++] & 0xFF;
+        final long byte18 = blocks[blocksOffset++] & 0xFF;
+        final long byte19 = blocks[blocksOffset++] & 0xFF;
+        final long byte20 = blocks[blocksOffset++] & 0xFF;
+        final long byte21 = blocks[blocksOffset++] & 0xFF;
+        final long byte22 = blocks[blocksOffset++] & 0xFF;
+        final long byte23 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte15 & 3) << 61) | (byte16 << 53) | (byte17 << 45) | (byte18 << 37) | (byte19 << 29) | (byte20 << 21) | (byte21 << 13) | (byte22 << 5) | (byte23 >>> 3);
+        final long byte24 = blocks[blocksOffset++] & 0xFF;
+        final long byte25 = blocks[blocksOffset++] & 0xFF;
+        final long byte26 = blocks[blocksOffset++] & 0xFF;
+        final long byte27 = blocks[blocksOffset++] & 0xFF;
+        final long byte28 = blocks[blocksOffset++] & 0xFF;
+        final long byte29 = blocks[blocksOffset++] & 0xFF;
+        final long byte30 = blocks[blocksOffset++] & 0xFF;
+        final long byte31 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte23 & 7) << 60) | (byte24 << 52) | (byte25 << 44) | (byte26 << 36) | (byte27 << 28) | (byte28 << 20) | (byte29 << 12) | (byte30 << 4) | (byte31 >>> 4);
+        final long byte32 = blocks[blocksOffset++] & 0xFF;
+        final long byte33 = blocks[blocksOffset++] & 0xFF;
+        final long byte34 = blocks[blocksOffset++] & 0xFF;
+        final long byte35 = blocks[blocksOffset++] & 0xFF;
+        final long byte36 = blocks[blocksOffset++] & 0xFF;
+        final long byte37 = blocks[blocksOffset++] & 0xFF;
+        final long byte38 = blocks[blocksOffset++] & 0xFF;
+        final long byte39 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte31 & 15) << 59) | (byte32 << 51) | (byte33 << 43) | (byte34 << 35) | (byte35 << 27) | (byte36 << 19) | (byte37 << 11) | (byte38 << 3) | (byte39 >>> 5);
+        final long byte40 = blocks[blocksOffset++] & 0xFF;
+        final long byte41 = blocks[blocksOffset++] & 0xFF;
+        final long byte42 = blocks[blocksOffset++] & 0xFF;
+        final long byte43 = blocks[blocksOffset++] & 0xFF;
+        final long byte44 = blocks[blocksOffset++] & 0xFF;
+        final long byte45 = blocks[blocksOffset++] & 0xFF;
+        final long byte46 = blocks[blocksOffset++] & 0xFF;
+        final long byte47 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte39 & 31) << 58) | (byte40 << 50) | (byte41 << 42) | (byte42 << 34) | (byte43 << 26) | (byte44 << 18) | (byte45 << 10) | (byte46 << 2) | (byte47 >>> 6);
+        final long byte48 = blocks[blocksOffset++] & 0xFF;
+        final long byte49 = blocks[blocksOffset++] & 0xFF;
+        final long byte50 = blocks[blocksOffset++] & 0xFF;
+        final long byte51 = blocks[blocksOffset++] & 0xFF;
+        final long byte52 = blocks[blocksOffset++] & 0xFF;
+        final long byte53 = blocks[blocksOffset++] & 0xFF;
+        final long byte54 = blocks[blocksOffset++] & 0xFF;
+        final long byte55 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte47 & 63) << 57) | (byte48 << 49) | (byte49 << 41) | (byte50 << 33) | (byte51 << 25) | (byte52 << 17) | (byte53 << 9) | (byte54 << 1) | (byte55 >>> 7);
+        final long byte56 = blocks[blocksOffset++] & 0xFF;
+        final long byte57 = blocks[blocksOffset++] & 0xFF;
+        final long byte58 = blocks[blocksOffset++] & 0xFF;
+        final long byte59 = blocks[blocksOffset++] & 0xFF;
+        final long byte60 = blocks[blocksOffset++] & 0xFF;
+        final long byte61 = blocks[blocksOffset++] & 0xFF;
+        final long byte62 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte55 & 127) << 56) | (byte56 << 48) | (byte57 << 40) | (byte58 << 32) | (byte59 << 24) | (byte60 << 16) | (byte61 << 8) | byte62;
+        final long byte63 = blocks[blocksOffset++] & 0xFF;
+        final long byte64 = blocks[blocksOffset++] & 0xFF;
+        final long byte65 = blocks[blocksOffset++] & 0xFF;
+        final long byte66 = blocks[blocksOffset++] & 0xFF;
+        final long byte67 = blocks[blocksOffset++] & 0xFF;
+        final long byte68 = blocks[blocksOffset++] & 0xFF;
+        final long byte69 = blocks[blocksOffset++] & 0xFF;
+        final long byte70 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte63 << 55) | (byte64 << 47) | (byte65 << 39) | (byte66 << 31) | (byte67 << 23) | (byte68 << 15) | (byte69 << 7) | (byte70 >>> 1);
+        final long byte71 = blocks[blocksOffset++] & 0xFF;
+        final long byte72 = blocks[blocksOffset++] & 0xFF;
+        final long byte73 = blocks[blocksOffset++] & 0xFF;
+        final long byte74 = blocks[blocksOffset++] & 0xFF;
+        final long byte75 = blocks[blocksOffset++] & 0xFF;
+        final long byte76 = blocks[blocksOffset++] & 0xFF;
+        final long byte77 = blocks[blocksOffset++] & 0xFF;
+        final long byte78 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte70 & 1) << 62) | (byte71 << 54) | (byte72 << 46) | (byte73 << 38) | (byte74 << 30) | (byte75 << 22) | (byte76 << 14) | (byte77 << 6) | (byte78 >>> 2);
+        final long byte79 = blocks[blocksOffset++] & 0xFF;
+        final long byte80 = blocks[blocksOffset++] & 0xFF;
+        final long byte81 = blocks[blocksOffset++] & 0xFF;
+        final long byte82 = blocks[blocksOffset++] & 0xFF;
+        final long byte83 = blocks[blocksOffset++] & 0xFF;
+        final long byte84 = blocks[blocksOffset++] & 0xFF;
+        final long byte85 = blocks[blocksOffset++] & 0xFF;
+        final long byte86 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte78 & 3) << 61) | (byte79 << 53) | (byte80 << 45) | (byte81 << 37) | (byte82 << 29) | (byte83 << 21) | (byte84 << 13) | (byte85 << 5) | (byte86 >>> 3);
+        final long byte87 = blocks[blocksOffset++] & 0xFF;
+        final long byte88 = blocks[blocksOffset++] & 0xFF;
+        final long byte89 = blocks[blocksOffset++] & 0xFF;
+        final long byte90 = blocks[blocksOffset++] & 0xFF;
+        final long byte91 = blocks[blocksOffset++] & 0xFF;
+        final long byte92 = blocks[blocksOffset++] & 0xFF;
+        final long byte93 = blocks[blocksOffset++] & 0xFF;
+        final long byte94 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte86 & 7) << 60) | (byte87 << 52) | (byte88 << 44) | (byte89 << 36) | (byte90 << 28) | (byte91 << 20) | (byte92 << 12) | (byte93 << 4) | (byte94 >>> 4);
+        final long byte95 = blocks[blocksOffset++] & 0xFF;
+        final long byte96 = blocks[blocksOffset++] & 0xFF;
+        final long byte97 = blocks[blocksOffset++] & 0xFF;
+        final long byte98 = blocks[blocksOffset++] & 0xFF;
+        final long byte99 = blocks[blocksOffset++] & 0xFF;
+        final long byte100 = blocks[blocksOffset++] & 0xFF;
+        final long byte101 = blocks[blocksOffset++] & 0xFF;
+        final long byte102 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte94 & 15) << 59) | (byte95 << 51) | (byte96 << 43) | (byte97 << 35) | (byte98 << 27) | (byte99 << 19) | (byte100 << 11) | (byte101 << 3) | (byte102 >>> 5);
+        final long byte103 = blocks[blocksOffset++] & 0xFF;
+        final long byte104 = blocks[blocksOffset++] & 0xFF;
+        final long byte105 = blocks[blocksOffset++] & 0xFF;
+        final long byte106 = blocks[blocksOffset++] & 0xFF;
+        final long byte107 = blocks[blocksOffset++] & 0xFF;
+        final long byte108 = blocks[blocksOffset++] & 0xFF;
+        final long byte109 = blocks[blocksOffset++] & 0xFF;
+        final long byte110 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte102 & 31) << 58) | (byte103 << 50) | (byte104 << 42) | (byte105 << 34) | (byte106 << 26) | (byte107 << 18) | (byte108 << 10) | (byte109 << 2) | (byte110 >>> 6);
+        final long byte111 = blocks[blocksOffset++] & 0xFF;
+        final long byte112 = blocks[blocksOffset++] & 0xFF;
+        final long byte113 = blocks[blocksOffset++] & 0xFF;
+        final long byte114 = blocks[blocksOffset++] & 0xFF;
+        final long byte115 = blocks[blocksOffset++] & 0xFF;
+        final long byte116 = blocks[blocksOffset++] & 0xFF;
+        final long byte117 = blocks[blocksOffset++] & 0xFF;
+        final long byte118 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte110 & 63) << 57) | (byte111 << 49) | (byte112 << 41) | (byte113 << 33) | (byte114 << 25) | (byte115 << 17) | (byte116 << 9) | (byte117 << 1) | (byte118 >>> 7);
+        final long byte119 = blocks[blocksOffset++] & 0xFF;
+        final long byte120 = blocks[blocksOffset++] & 0xFF;
+        final long byte121 = blocks[blocksOffset++] & 0xFF;
+        final long byte122 = blocks[blocksOffset++] & 0xFF;
+        final long byte123 = blocks[blocksOffset++] & 0xFF;
+        final long byte124 = blocks[blocksOffset++] & 0xFF;
+        final long byte125 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte118 & 127) << 56) | (byte119 << 48) | (byte120 << 40) | (byte121 << 32) | (byte122 << 24) | (byte123 << 16) | (byte124 << 8) | byte125;
+        final long byte126 = blocks[blocksOffset++] & 0xFF;
+        final long byte127 = blocks[blocksOffset++] & 0xFF;
+        final long byte128 = blocks[blocksOffset++] & 0xFF;
+        final long byte129 = blocks[blocksOffset++] & 0xFF;
+        final long byte130 = blocks[blocksOffset++] & 0xFF;
+        final long byte131 = blocks[blocksOffset++] & 0xFF;
+        final long byte132 = blocks[blocksOffset++] & 0xFF;
+        final long byte133 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte126 << 55) | (byte127 << 47) | (byte128 << 39) | (byte129 << 31) | (byte130 << 23) | (byte131 << 15) | (byte132 << 7) | (byte133 >>> 1);
+        final long byte134 = blocks[blocksOffset++] & 0xFF;
+        final long byte135 = blocks[blocksOffset++] & 0xFF;
+        final long byte136 = blocks[blocksOffset++] & 0xFF;
+        final long byte137 = blocks[blocksOffset++] & 0xFF;
+        final long byte138 = blocks[blocksOffset++] & 0xFF;
+        final long byte139 = blocks[blocksOffset++] & 0xFF;
+        final long byte140 = blocks[blocksOffset++] & 0xFF;
+        final long byte141 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte133 & 1) << 62) | (byte134 << 54) | (byte135 << 46) | (byte136 << 38) | (byte137 << 30) | (byte138 << 22) | (byte139 << 14) | (byte140 << 6) | (byte141 >>> 2);
+        final long byte142 = blocks[blocksOffset++] & 0xFF;
+        final long byte143 = blocks[blocksOffset++] & 0xFF;
+        final long byte144 = blocks[blocksOffset++] & 0xFF;
+        final long byte145 = blocks[blocksOffset++] & 0xFF;
+        final long byte146 = blocks[blocksOffset++] & 0xFF;
+        final long byte147 = blocks[blocksOffset++] & 0xFF;
+        final long byte148 = blocks[blocksOffset++] & 0xFF;
+        final long byte149 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte141 & 3) << 61) | (byte142 << 53) | (byte143 << 45) | (byte144 << 37) | (byte145 << 29) | (byte146 << 21) | (byte147 << 13) | (byte148 << 5) | (byte149 >>> 3);
+        final long byte150 = blocks[blocksOffset++] & 0xFF;
+        final long byte151 = blocks[blocksOffset++] & 0xFF;
+        final long byte152 = blocks[blocksOffset++] & 0xFF;
+        final long byte153 = blocks[blocksOffset++] & 0xFF;
+        final long byte154 = blocks[blocksOffset++] & 0xFF;
+        final long byte155 = blocks[blocksOffset++] & 0xFF;
+        final long byte156 = blocks[blocksOffset++] & 0xFF;
+        final long byte157 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte149 & 7) << 60) | (byte150 << 52) | (byte151 << 44) | (byte152 << 36) | (byte153 << 28) | (byte154 << 20) | (byte155 << 12) | (byte156 << 4) | (byte157 >>> 4);
+        final long byte158 = blocks[blocksOffset++] & 0xFF;
+        final long byte159 = blocks[blocksOffset++] & 0xFF;
+        final long byte160 = blocks[blocksOffset++] & 0xFF;
+        final long byte161 = blocks[blocksOffset++] & 0xFF;
+        final long byte162 = blocks[blocksOffset++] & 0xFF;
+        final long byte163 = blocks[blocksOffset++] & 0xFF;
+        final long byte164 = blocks[blocksOffset++] & 0xFF;
+        final long byte165 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte157 & 15) << 59) | (byte158 << 51) | (byte159 << 43) | (byte160 << 35) | (byte161 << 27) | (byte162 << 19) | (byte163 << 11) | (byte164 << 3) | (byte165 >>> 5);
+        final long byte166 = blocks[blocksOffset++] & 0xFF;
+        final long byte167 = blocks[blocksOffset++] & 0xFF;
+        final long byte168 = blocks[blocksOffset++] & 0xFF;
+        final long byte169 = blocks[blocksOffset++] & 0xFF;
+        final long byte170 = blocks[blocksOffset++] & 0xFF;
+        final long byte171 = blocks[blocksOffset++] & 0xFF;
+        final long byte172 = blocks[blocksOffset++] & 0xFF;
+        final long byte173 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte165 & 31) << 58) | (byte166 << 50) | (byte167 << 42) | (byte168 << 34) | (byte169 << 26) | (byte170 << 18) | (byte171 << 10) | (byte172 << 2) | (byte173 >>> 6);
+        final long byte174 = blocks[blocksOffset++] & 0xFF;
+        final long byte175 = blocks[blocksOffset++] & 0xFF;
+        final long byte176 = blocks[blocksOffset++] & 0xFF;
+        final long byte177 = blocks[blocksOffset++] & 0xFF;
+        final long byte178 = blocks[blocksOffset++] & 0xFF;
+        final long byte179 = blocks[blocksOffset++] & 0xFF;
+        final long byte180 = blocks[blocksOffset++] & 0xFF;
+        final long byte181 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte173 & 63) << 57) | (byte174 << 49) | (byte175 << 41) | (byte176 << 33) | (byte177 << 25) | (byte178 << 17) | (byte179 << 9) | (byte180 << 1) | (byte181 >>> 7);
+        final long byte182 = blocks[blocksOffset++] & 0xFF;
+        final long byte183 = blocks[blocksOffset++] & 0xFF;
+        final long byte184 = blocks[blocksOffset++] & 0xFF;
+        final long byte185 = blocks[blocksOffset++] & 0xFF;
+        final long byte186 = blocks[blocksOffset++] & 0xFF;
+        final long byte187 = blocks[blocksOffset++] & 0xFF;
+        final long byte188 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte181 & 127) << 56) | (byte182 << 48) | (byte183 << 40) | (byte184 << 32) | (byte185 << 24) | (byte186 << 16) | (byte187 << 8) | byte188;
+        final long byte189 = blocks[blocksOffset++] & 0xFF;
+        final long byte190 = blocks[blocksOffset++] & 0xFF;
+        final long byte191 = blocks[blocksOffset++] & 0xFF;
+        final long byte192 = blocks[blocksOffset++] & 0xFF;
+        final long byte193 = blocks[blocksOffset++] & 0xFF;
+        final long byte194 = blocks[blocksOffset++] & 0xFF;
+        final long byte195 = blocks[blocksOffset++] & 0xFF;
+        final long byte196 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte189 << 55) | (byte190 << 47) | (byte191 << 39) | (byte192 << 31) | (byte193 << 23) | (byte194 << 15) | (byte195 << 7) | (byte196 >>> 1);
+        final long byte197 = blocks[blocksOffset++] & 0xFF;
+        final long byte198 = blocks[blocksOffset++] & 0xFF;
+        final long byte199 = blocks[blocksOffset++] & 0xFF;
+        final long byte200 = blocks[blocksOffset++] & 0xFF;
+        final long byte201 = blocks[blocksOffset++] & 0xFF;
+        final long byte202 = blocks[blocksOffset++] & 0xFF;
+        final long byte203 = blocks[blocksOffset++] & 0xFF;
+        final long byte204 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte196 & 1) << 62) | (byte197 << 54) | (byte198 << 46) | (byte199 << 38) | (byte200 << 30) | (byte201 << 22) | (byte202 << 14) | (byte203 << 6) | (byte204 >>> 2);
+        final long byte205 = blocks[blocksOffset++] & 0xFF;
+        final long byte206 = blocks[blocksOffset++] & 0xFF;
+        final long byte207 = blocks[blocksOffset++] & 0xFF;
+        final long byte208 = blocks[blocksOffset++] & 0xFF;
+        final long byte209 = blocks[blocksOffset++] & 0xFF;
+        final long byte210 = blocks[blocksOffset++] & 0xFF;
+        final long byte211 = blocks[blocksOffset++] & 0xFF;
+        final long byte212 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte204 & 3) << 61) | (byte205 << 53) | (byte206 << 45) | (byte207 << 37) | (byte208 << 29) | (byte209 << 21) | (byte210 << 13) | (byte211 << 5) | (byte212 >>> 3);
+        final long byte213 = blocks[blocksOffset++] & 0xFF;
+        final long byte214 = blocks[blocksOffset++] & 0xFF;
+        final long byte215 = blocks[blocksOffset++] & 0xFF;
+        final long byte216 = blocks[blocksOffset++] & 0xFF;
+        final long byte217 = blocks[blocksOffset++] & 0xFF;
+        final long byte218 = blocks[blocksOffset++] & 0xFF;
+        final long byte219 = blocks[blocksOffset++] & 0xFF;
+        final long byte220 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte212 & 7) << 60) | (byte213 << 52) | (byte214 << 44) | (byte215 << 36) | (byte216 << 28) | (byte217 << 20) | (byte218 << 12) | (byte219 << 4) | (byte220 >>> 4);
+        final long byte221 = blocks[blocksOffset++] & 0xFF;
+        final long byte222 = blocks[blocksOffset++] & 0xFF;
+        final long byte223 = blocks[blocksOffset++] & 0xFF;
+        final long byte224 = blocks[blocksOffset++] & 0xFF;
+        final long byte225 = blocks[blocksOffset++] & 0xFF;
+        final long byte226 = blocks[blocksOffset++] & 0xFF;
+        final long byte227 = blocks[blocksOffset++] & 0xFF;
+        final long byte228 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte220 & 15) << 59) | (byte221 << 51) | (byte222 << 43) | (byte223 << 35) | (byte224 << 27) | (byte225 << 19) | (byte226 << 11) | (byte227 << 3) | (byte228 >>> 5);
+        final long byte229 = blocks[blocksOffset++] & 0xFF;
+        final long byte230 = blocks[blocksOffset++] & 0xFF;
+        final long byte231 = blocks[blocksOffset++] & 0xFF;
+        final long byte232 = blocks[blocksOffset++] & 0xFF;
+        final long byte233 = blocks[blocksOffset++] & 0xFF;
+        final long byte234 = blocks[blocksOffset++] & 0xFF;
+        final long byte235 = blocks[blocksOffset++] & 0xFF;
+        final long byte236 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte228 & 31) << 58) | (byte229 << 50) | (byte230 << 42) | (byte231 << 34) | (byte232 << 26) | (byte233 << 18) | (byte234 << 10) | (byte235 << 2) | (byte236 >>> 6);
+        final long byte237 = blocks[blocksOffset++] & 0xFF;
+        final long byte238 = blocks[blocksOffset++] & 0xFF;
+        final long byte239 = blocks[blocksOffset++] & 0xFF;
+        final long byte240 = blocks[blocksOffset++] & 0xFF;
+        final long byte241 = blocks[blocksOffset++] & 0xFF;
+        final long byte242 = blocks[blocksOffset++] & 0xFF;
+        final long byte243 = blocks[blocksOffset++] & 0xFF;
+        final long byte244 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte236 & 63) << 57) | (byte237 << 49) | (byte238 << 41) | (byte239 << 33) | (byte240 << 25) | (byte241 << 17) | (byte242 << 9) | (byte243 << 1) | (byte244 >>> 7);
+        final long byte245 = blocks[blocksOffset++] & 0xFF;
+        final long byte246 = blocks[blocksOffset++] & 0xFF;
+        final long byte247 = blocks[blocksOffset++] & 0xFF;
+        final long byte248 = blocks[blocksOffset++] & 0xFF;
+        final long byte249 = blocks[blocksOffset++] & 0xFF;
+        final long byte250 = blocks[blocksOffset++] & 0xFF;
+        final long byte251 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte244 & 127) << 56) | (byte245 << 48) | (byte246 << 40) | (byte247 << 32) | (byte248 << 24) | (byte249 << 16) | (byte250 << 8) | byte251;
+        final long byte252 = blocks[blocksOffset++] & 0xFF;
+        final long byte253 = blocks[blocksOffset++] & 0xFF;
+        final long byte254 = blocks[blocksOffset++] & 0xFF;
+        final long byte255 = blocks[blocksOffset++] & 0xFF;
+        final long byte256 = blocks[blocksOffset++] & 0xFF;
+        final long byte257 = blocks[blocksOffset++] & 0xFF;
+        final long byte258 = blocks[blocksOffset++] & 0xFF;
+        final long byte259 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte252 << 55) | (byte253 << 47) | (byte254 << 39) | (byte255 << 31) | (byte256 << 23) | (byte257 << 15) | (byte258 << 7) | (byte259 >>> 1);
+        final long byte260 = blocks[blocksOffset++] & 0xFF;
+        final long byte261 = blocks[blocksOffset++] & 0xFF;
+        final long byte262 = blocks[blocksOffset++] & 0xFF;
+        final long byte263 = blocks[blocksOffset++] & 0xFF;
+        final long byte264 = blocks[blocksOffset++] & 0xFF;
+        final long byte265 = blocks[blocksOffset++] & 0xFF;
+        final long byte266 = blocks[blocksOffset++] & 0xFF;
+        final long byte267 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte259 & 1) << 62) | (byte260 << 54) | (byte261 << 46) | (byte262 << 38) | (byte263 << 30) | (byte264 << 22) | (byte265 << 14) | (byte266 << 6) | (byte267 >>> 2);
+        final long byte268 = blocks[blocksOffset++] & 0xFF;
+        final long byte269 = blocks[blocksOffset++] & 0xFF;
+        final long byte270 = blocks[blocksOffset++] & 0xFF;
+        final long byte271 = blocks[blocksOffset++] & 0xFF;
+        final long byte272 = blocks[blocksOffset++] & 0xFF;
+        final long byte273 = blocks[blocksOffset++] & 0xFF;
+        final long byte274 = blocks[blocksOffset++] & 0xFF;
+        final long byte275 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte267 & 3) << 61) | (byte268 << 53) | (byte269 << 45) | (byte270 << 37) | (byte271 << 29) | (byte272 << 21) | (byte273 << 13) | (byte274 << 5) | (byte275 >>> 3);
+        final long byte276 = blocks[blocksOffset++] & 0xFF;
+        final long byte277 = blocks[blocksOffset++] & 0xFF;
+        final long byte278 = blocks[blocksOffset++] & 0xFF;
+        final long byte279 = blocks[blocksOffset++] & 0xFF;
+        final long byte280 = blocks[blocksOffset++] & 0xFF;
+        final long byte281 = blocks[blocksOffset++] & 0xFF;
+        final long byte282 = blocks[blocksOffset++] & 0xFF;
+        final long byte283 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte275 & 7) << 60) | (byte276 << 52) | (byte277 << 44) | (byte278 << 36) | (byte279 << 28) | (byte280 << 20) | (byte281 << 12) | (byte282 << 4) | (byte283 >>> 4);
+        final long byte284 = blocks[blocksOffset++] & 0xFF;
+        final long byte285 = blocks[blocksOffset++] & 0xFF;
+        final long byte286 = blocks[blocksOffset++] & 0xFF;
+        final long byte287 = blocks[blocksOffset++] & 0xFF;
+        final long byte288 = blocks[blocksOffset++] & 0xFF;
+        final long byte289 = blocks[blocksOffset++] & 0xFF;
+        final long byte290 = blocks[blocksOffset++] & 0xFF;
+        final long byte291 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte283 & 15) << 59) | (byte284 << 51) | (byte285 << 43) | (byte286 << 35) | (byte287 << 27) | (byte288 << 19) | (byte289 << 11) | (byte290 << 3) | (byte291 >>> 5);
+        final long byte292 = blocks[blocksOffset++] & 0xFF;
+        final long byte293 = blocks[blocksOffset++] & 0xFF;
+        final long byte294 = blocks[blocksOffset++] & 0xFF;
+        final long byte295 = blocks[blocksOffset++] & 0xFF;
+        final long byte296 = blocks[blocksOffset++] & 0xFF;
+        final long byte297 = blocks[blocksOffset++] & 0xFF;
+        final long byte298 = blocks[blocksOffset++] & 0xFF;
+        final long byte299 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte291 & 31) << 58) | (byte292 << 50) | (byte293 << 42) | (byte294 << 34) | (byte295 << 26) | (byte296 << 18) | (byte297 << 10) | (byte298 << 2) | (byte299 >>> 6);
+        final long byte300 = blocks[blocksOffset++] & 0xFF;
+        final long byte301 = blocks[blocksOffset++] & 0xFF;
+        final long byte302 = blocks[blocksOffset++] & 0xFF;
+        final long byte303 = blocks[blocksOffset++] & 0xFF;
+        final long byte304 = blocks[blocksOffset++] & 0xFF;
+        final long byte305 = blocks[blocksOffset++] & 0xFF;
+        final long byte306 = blocks[blocksOffset++] & 0xFF;
+        final long byte307 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte299 & 63) << 57) | (byte300 << 49) | (byte301 << 41) | (byte302 << 33) | (byte303 << 25) | (byte304 << 17) | (byte305 << 9) | (byte306 << 1) | (byte307 >>> 7);
+        final long byte308 = blocks[blocksOffset++] & 0xFF;
+        final long byte309 = blocks[blocksOffset++] & 0xFF;
+        final long byte310 = blocks[blocksOffset++] & 0xFF;
+        final long byte311 = blocks[blocksOffset++] & 0xFF;
+        final long byte312 = blocks[blocksOffset++] & 0xFF;
+        final long byte313 = blocks[blocksOffset++] & 0xFF;
+        final long byte314 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte307 & 127) << 56) | (byte308 << 48) | (byte309 << 40) | (byte310 << 32) | (byte311 << 24) | (byte312 << 16) | (byte313 << 8) | byte314;
+        final long byte315 = blocks[blocksOffset++] & 0xFF;
+        final long byte316 = blocks[blocksOffset++] & 0xFF;
+        final long byte317 = blocks[blocksOffset++] & 0xFF;
+        final long byte318 = blocks[blocksOffset++] & 0xFF;
+        final long byte319 = blocks[blocksOffset++] & 0xFF;
+        final long byte320 = blocks[blocksOffset++] & 0xFF;
+        final long byte321 = blocks[blocksOffset++] & 0xFF;
+        final long byte322 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte315 << 55) | (byte316 << 47) | (byte317 << 39) | (byte318 << 31) | (byte319 << 23) | (byte320 << 15) | (byte321 << 7) | (byte322 >>> 1);
+        final long byte323 = blocks[blocksOffset++] & 0xFF;
+        final long byte324 = blocks[blocksOffset++] & 0xFF;
+        final long byte325 = blocks[blocksOffset++] & 0xFF;
+        final long byte326 = blocks[blocksOffset++] & 0xFF;
+        final long byte327 = blocks[blocksOffset++] & 0xFF;
+        final long byte328 = blocks[blocksOffset++] & 0xFF;
+        final long byte329 = blocks[blocksOffset++] & 0xFF;
+        final long byte330 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte322 & 1) << 62) | (byte323 << 54) | (byte324 << 46) | (byte325 << 38) | (byte326 << 30) | (byte327 << 22) | (byte328 << 14) | (byte329 << 6) | (byte330 >>> 2);
+        final long byte331 = blocks[blocksOffset++] & 0xFF;
+        final long byte332 = blocks[blocksOffset++] & 0xFF;
+        final long byte333 = blocks[blocksOffset++] & 0xFF;
+        final long byte334 = blocks[blocksOffset++] & 0xFF;
+        final long byte335 = blocks[blocksOffset++] & 0xFF;
+        final long byte336 = blocks[blocksOffset++] & 0xFF;
+        final long byte337 = blocks[blocksOffset++] & 0xFF;
+        final long byte338 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte330 & 3) << 61) | (byte331 << 53) | (byte332 << 45) | (byte333 << 37) | (byte334 << 29) | (byte335 << 21) | (byte336 << 13) | (byte337 << 5) | (byte338 >>> 3);
+        final long byte339 = blocks[blocksOffset++] & 0xFF;
+        final long byte340 = blocks[blocksOffset++] & 0xFF;
+        final long byte341 = blocks[blocksOffset++] & 0xFF;
+        final long byte342 = blocks[blocksOffset++] & 0xFF;
+        final long byte343 = blocks[blocksOffset++] & 0xFF;
+        final long byte344 = blocks[blocksOffset++] & 0xFF;
+        final long byte345 = blocks[blocksOffset++] & 0xFF;
+        final long byte346 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte338 & 7) << 60) | (byte339 << 52) | (byte340 << 44) | (byte341 << 36) | (byte342 << 28) | (byte343 << 20) | (byte344 << 12) | (byte345 << 4) | (byte346 >>> 4);
+        final long byte347 = blocks[blocksOffset++] & 0xFF;
+        final long byte348 = blocks[blocksOffset++] & 0xFF;
+        final long byte349 = blocks[blocksOffset++] & 0xFF;
+        final long byte350 = blocks[blocksOffset++] & 0xFF;
+        final long byte351 = blocks[blocksOffset++] & 0xFF;
+        final long byte352 = blocks[blocksOffset++] & 0xFF;
+        final long byte353 = blocks[blocksOffset++] & 0xFF;
+        final long byte354 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte346 & 15) << 59) | (byte347 << 51) | (byte348 << 43) | (byte349 << 35) | (byte350 << 27) | (byte351 << 19) | (byte352 << 11) | (byte353 << 3) | (byte354 >>> 5);
+        final long byte355 = blocks[blocksOffset++] & 0xFF;
+        final long byte356 = blocks[blocksOffset++] & 0xFF;
+        final long byte357 = blocks[blocksOffset++] & 0xFF;
+        final long byte358 = blocks[blocksOffset++] & 0xFF;
+        final long byte359 = blocks[blocksOffset++] & 0xFF;
+        final long byte360 = blocks[blocksOffset++] & 0xFF;
+        final long byte361 = blocks[blocksOffset++] & 0xFF;
+        final long byte362 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte354 & 31) << 58) | (byte355 << 50) | (byte356 << 42) | (byte357 << 34) | (byte358 << 26) | (byte359 << 18) | (byte360 << 10) | (byte361 << 2) | (byte362 >>> 6);
+        final long byte363 = blocks[blocksOffset++] & 0xFF;
+        final long byte364 = blocks[blocksOffset++] & 0xFF;
+        final long byte365 = blocks[blocksOffset++] & 0xFF;
+        final long byte366 = blocks[blocksOffset++] & 0xFF;
+        final long byte367 = blocks[blocksOffset++] & 0xFF;
+        final long byte368 = blocks[blocksOffset++] & 0xFF;
+        final long byte369 = blocks[blocksOffset++] & 0xFF;
+        final long byte370 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte362 & 63) << 57) | (byte363 << 49) | (byte364 << 41) | (byte365 << 33) | (byte366 << 25) | (byte367 << 17) | (byte368 << 9) | (byte369 << 1) | (byte370 >>> 7);
+        final long byte371 = blocks[blocksOffset++] & 0xFF;
+        final long byte372 = blocks[blocksOffset++] & 0xFF;
+        final long byte373 = blocks[blocksOffset++] & 0xFF;
+        final long byte374 = blocks[blocksOffset++] & 0xFF;
+        final long byte375 = blocks[blocksOffset++] & 0xFF;
+        final long byte376 = blocks[blocksOffset++] & 0xFF;
+        final long byte377 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte370 & 127) << 56) | (byte371 << 48) | (byte372 << 40) | (byte373 << 32) | (byte374 << 24) | (byte375 << 16) | (byte376 << 8) | byte377;
+        final long byte378 = blocks[blocksOffset++] & 0xFF;
+        final long byte379 = blocks[blocksOffset++] & 0xFF;
+        final long byte380 = blocks[blocksOffset++] & 0xFF;
+        final long byte381 = blocks[blocksOffset++] & 0xFF;
+        final long byte382 = blocks[blocksOffset++] & 0xFF;
+        final long byte383 = blocks[blocksOffset++] & 0xFF;
+        final long byte384 = blocks[blocksOffset++] & 0xFF;
+        final long byte385 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte378 << 55) | (byte379 << 47) | (byte380 << 39) | (byte381 << 31) | (byte382 << 23) | (byte383 << 15) | (byte384 << 7) | (byte385 >>> 1);
+        final long byte386 = blocks[blocksOffset++] & 0xFF;
+        final long byte387 = blocks[blocksOffset++] & 0xFF;
+        final long byte388 = blocks[blocksOffset++] & 0xFF;
+        final long byte389 = blocks[blocksOffset++] & 0xFF;
+        final long byte390 = blocks[blocksOffset++] & 0xFF;
+        final long byte391 = blocks[blocksOffset++] & 0xFF;
+        final long byte392 = blocks[blocksOffset++] & 0xFF;
+        final long byte393 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte385 & 1) << 62) | (byte386 << 54) | (byte387 << 46) | (byte388 << 38) | (byte389 << 30) | (byte390 << 22) | (byte391 << 14) | (byte392 << 6) | (byte393 >>> 2);
+        final long byte394 = blocks[blocksOffset++] & 0xFF;
+        final long byte395 = blocks[blocksOffset++] & 0xFF;
+        final long byte396 = blocks[blocksOffset++] & 0xFF;
+        final long byte397 = blocks[blocksOffset++] & 0xFF;
+        final long byte398 = blocks[blocksOffset++] & 0xFF;
+        final long byte399 = blocks[blocksOffset++] & 0xFF;
+        final long byte400 = blocks[blocksOffset++] & 0xFF;
+        final long byte401 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte393 & 3) << 61) | (byte394 << 53) | (byte395 << 45) | (byte396 << 37) | (byte397 << 29) | (byte398 << 21) | (byte399 << 13) | (byte400 << 5) | (byte401 >>> 3);
+        final long byte402 = blocks[blocksOffset++] & 0xFF;
+        final long byte403 = blocks[blocksOffset++] & 0xFF;
+        final long byte404 = blocks[blocksOffset++] & 0xFF;
+        final long byte405 = blocks[blocksOffset++] & 0xFF;
+        final long byte406 = blocks[blocksOffset++] & 0xFF;
+        final long byte407 = blocks[blocksOffset++] & 0xFF;
+        final long byte408 = blocks[blocksOffset++] & 0xFF;
+        final long byte409 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte401 & 7) << 60) | (byte402 << 52) | (byte403 << 44) | (byte404 << 36) | (byte405 << 28) | (byte406 << 20) | (byte407 << 12) | (byte408 << 4) | (byte409 >>> 4);
+        final long byte410 = blocks[blocksOffset++] & 0xFF;
+        final long byte411 = blocks[blocksOffset++] & 0xFF;
+        final long byte412 = blocks[blocksOffset++] & 0xFF;
+        final long byte413 = blocks[blocksOffset++] & 0xFF;
+        final long byte414 = blocks[blocksOffset++] & 0xFF;
+        final long byte415 = blocks[blocksOffset++] & 0xFF;
+        final long byte416 = blocks[blocksOffset++] & 0xFF;
+        final long byte417 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte409 & 15) << 59) | (byte410 << 51) | (byte411 << 43) | (byte412 << 35) | (byte413 << 27) | (byte414 << 19) | (byte415 << 11) | (byte416 << 3) | (byte417 >>> 5);
+        final long byte418 = blocks[blocksOffset++] & 0xFF;
+        final long byte419 = blocks[blocksOffset++] & 0xFF;
+        final long byte420 = blocks[blocksOffset++] & 0xFF;
+        final long byte421 = blocks[blocksOffset++] & 0xFF;
+        final long byte422 = blocks[blocksOffset++] & 0xFF;
+        final long byte423 = blocks[blocksOffset++] & 0xFF;
+        final long byte424 = blocks[blocksOffset++] & 0xFF;
+        final long byte425 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte417 & 31) << 58) | (byte418 << 50) | (byte419 << 42) | (byte420 << 34) | (byte421 << 26) | (byte422 << 18) | (byte423 << 10) | (byte424 << 2) | (byte425 >>> 6);
+        final long byte426 = blocks[blocksOffset++] & 0xFF;
+        final long byte427 = blocks[blocksOffset++] & 0xFF;
+        final long byte428 = blocks[blocksOffset++] & 0xFF;
+        final long byte429 = blocks[blocksOffset++] & 0xFF;
+        final long byte430 = blocks[blocksOffset++] & 0xFF;
+        final long byte431 = blocks[blocksOffset++] & 0xFF;
+        final long byte432 = blocks[blocksOffset++] & 0xFF;
+        final long byte433 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte425 & 63) << 57) | (byte426 << 49) | (byte427 << 41) | (byte428 << 33) | (byte429 << 25) | (byte430 << 17) | (byte431 << 9) | (byte432 << 1) | (byte433 >>> 7);
+        final long byte434 = blocks[blocksOffset++] & 0xFF;
+        final long byte435 = blocks[blocksOffset++] & 0xFF;
+        final long byte436 = blocks[blocksOffset++] & 0xFF;
+        final long byte437 = blocks[blocksOffset++] & 0xFF;
+        final long byte438 = blocks[blocksOffset++] & 0xFF;
+        final long byte439 = blocks[blocksOffset++] & 0xFF;
+        final long byte440 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte433 & 127) << 56) | (byte434 << 48) | (byte435 << 40) | (byte436 << 32) | (byte437 << 24) | (byte438 << 16) | (byte439 << 8) | byte440;
+        final long byte441 = blocks[blocksOffset++] & 0xFF;
+        final long byte442 = blocks[blocksOffset++] & 0xFF;
+        final long byte443 = blocks[blocksOffset++] & 0xFF;
+        final long byte444 = blocks[blocksOffset++] & 0xFF;
+        final long byte445 = blocks[blocksOffset++] & 0xFF;
+        final long byte446 = blocks[blocksOffset++] & 0xFF;
+        final long byte447 = blocks[blocksOffset++] & 0xFF;
+        final long byte448 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte441 << 55) | (byte442 << 47) | (byte443 << 39) | (byte444 << 31) | (byte445 << 23) | (byte446 << 15) | (byte447 << 7) | (byte448 >>> 1);
+        final long byte449 = blocks[blocksOffset++] & 0xFF;
+        final long byte450 = blocks[blocksOffset++] & 0xFF;
+        final long byte451 = blocks[blocksOffset++] & 0xFF;
+        final long byte452 = blocks[blocksOffset++] & 0xFF;
+        final long byte453 = blocks[blocksOffset++] & 0xFF;
+        final long byte454 = blocks[blocksOffset++] & 0xFF;
+        final long byte455 = blocks[blocksOffset++] & 0xFF;
+        final long byte456 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte448 & 1) << 62) | (byte449 << 54) | (byte450 << 46) | (byte451 << 38) | (byte452 << 30) | (byte453 << 22) | (byte454 << 14) | (byte455 << 6) | (byte456 >>> 2);
+        final long byte457 = blocks[blocksOffset++] & 0xFF;
+        final long byte458 = blocks[blocksOffset++] & 0xFF;
+        final long byte459 = blocks[blocksOffset++] & 0xFF;
+        final long byte460 = blocks[blocksOffset++] & 0xFF;
+        final long byte461 = blocks[blocksOffset++] & 0xFF;
+        final long byte462 = blocks[blocksOffset++] & 0xFF;
+        final long byte463 = blocks[blocksOffset++] & 0xFF;
+        final long byte464 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte456 & 3) << 61) | (byte457 << 53) | (byte458 << 45) | (byte459 << 37) | (byte460 << 29) | (byte461 << 21) | (byte462 << 13) | (byte463 << 5) | (byte464 >>> 3);
+        final long byte465 = blocks[blocksOffset++] & 0xFF;
+        final long byte466 = blocks[blocksOffset++] & 0xFF;
+        final long byte467 = blocks[blocksOffset++] & 0xFF;
+        final long byte468 = blocks[blocksOffset++] & 0xFF;
+        final long byte469 = blocks[blocksOffset++] & 0xFF;
+        final long byte470 = blocks[blocksOffset++] & 0xFF;
+        final long byte471 = blocks[blocksOffset++] & 0xFF;
+        final long byte472 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte464 & 7) << 60) | (byte465 << 52) | (byte466 << 44) | (byte467 << 36) | (byte468 << 28) | (byte469 << 20) | (byte470 << 12) | (byte471 << 4) | (byte472 >>> 4);
+        final long byte473 = blocks[blocksOffset++] & 0xFF;
+        final long byte474 = blocks[blocksOffset++] & 0xFF;
+        final long byte475 = blocks[blocksOffset++] & 0xFF;
+        final long byte476 = blocks[blocksOffset++] & 0xFF;
+        final long byte477 = blocks[blocksOffset++] & 0xFF;
+        final long byte478 = blocks[blocksOffset++] & 0xFF;
+        final long byte479 = blocks[blocksOffset++] & 0xFF;
+        final long byte480 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte472 & 15) << 59) | (byte473 << 51) | (byte474 << 43) | (byte475 << 35) | (byte476 << 27) | (byte477 << 19) | (byte478 << 11) | (byte479 << 3) | (byte480 >>> 5);
+        final long byte481 = blocks[blocksOffset++] & 0xFF;
+        final long byte482 = blocks[blocksOffset++] & 0xFF;
+        final long byte483 = blocks[blocksOffset++] & 0xFF;
+        final long byte484 = blocks[blocksOffset++] & 0xFF;
+        final long byte485 = blocks[blocksOffset++] & 0xFF;
+        final long byte486 = blocks[blocksOffset++] & 0xFF;
+        final long byte487 = blocks[blocksOffset++] & 0xFF;
+        final long byte488 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte480 & 31) << 58) | (byte481 << 50) | (byte482 << 42) | (byte483 << 34) | (byte484 << 26) | (byte485 << 18) | (byte486 << 10) | (byte487 << 2) | (byte488 >>> 6);
+        final long byte489 = blocks[blocksOffset++] & 0xFF;
+        final long byte490 = blocks[blocksOffset++] & 0xFF;
+        final long byte491 = blocks[blocksOffset++] & 0xFF;
+        final long byte492 = blocks[blocksOffset++] & 0xFF;
+        final long byte493 = blocks[blocksOffset++] & 0xFF;
+        final long byte494 = blocks[blocksOffset++] & 0xFF;
+        final long byte495 = blocks[blocksOffset++] & 0xFF;
+        final long byte496 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte488 & 63) << 57) | (byte489 << 49) | (byte490 << 41) | (byte491 << 33) | (byte492 << 25) | (byte493 << 17) | (byte494 << 9) | (byte495 << 1) | (byte496 >>> 7);
+        final long byte497 = blocks[blocksOffset++] & 0xFF;
+        final long byte498 = blocks[blocksOffset++] & 0xFF;
+        final long byte499 = blocks[blocksOffset++] & 0xFF;
+        final long byte500 = blocks[blocksOffset++] & 0xFF;
+        final long byte501 = blocks[blocksOffset++] & 0xFF;
+        final long byte502 = blocks[blocksOffset++] & 0xFF;
+        final long byte503 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte496 & 127) << 56) | (byte497 << 48) | (byte498 << 40) | (byte499 << 32) | (byte500 << 24) | (byte501 << 16) | (byte502 << 8) | byte503;
+      }
+    }
+
+    public void encode(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) {
+      assert blocksOffset + iterations * blockCount() <= blocks.length;
+      assert valuesOffset + iterations * valueCount() <= values.length;
+      for (int i = 0; i < iterations; ++i) {
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 1) | ((values[valuesOffset] & 0xffffffffL) >>> 62);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 2) | ((values[valuesOffset] & 0xffffffffL) >>> 61);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 3) | ((values[valuesOffset] & 0xffffffffL) >>> 60);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 4) | ((values[valuesOffset] & 0xffffffffL) >>> 59);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 5) | ((values[valuesOffset] & 0xffffffffL) >>> 58);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 6) | ((values[valuesOffset] & 0xffffffffL) >>> 57);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 7) | ((values[valuesOffset] & 0xffffffffL) >>> 56);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 8) | ((values[valuesOffset] & 0xffffffffL) >>> 55);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 9) | ((values[valuesOffset] & 0xffffffffL) >>> 54);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 10) | ((values[valuesOffset] & 0xffffffffL) >>> 53);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 11) | ((values[valuesOffset] & 0xffffffffL) >>> 52);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 12) | ((values[valuesOffset] & 0xffffffffL) >>> 51);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 13) | ((values[valuesOffset] & 0xffffffffL) >>> 50);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 14) | ((values[valuesOffset] & 0xffffffffL) >>> 49);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 15) | ((values[valuesOffset] & 0xffffffffL) >>> 48);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 16) | ((values[valuesOffset] & 0xffffffffL) >>> 47);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 17) | ((values[valuesOffset] & 0xffffffffL) >>> 46);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 18) | ((values[valuesOffset] & 0xffffffffL) >>> 45);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 19) | ((values[valuesOffset] & 0xffffffffL) >>> 44);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 20) | ((values[valuesOffset] & 0xffffffffL) >>> 43);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 21) | ((values[valuesOffset] & 0xffffffffL) >>> 42);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 22) | ((values[valuesOffset] & 0xffffffffL) >>> 41);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 23) | ((values[valuesOffset] & 0xffffffffL) >>> 40);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 24) | ((values[valuesOffset] & 0xffffffffL) >>> 39);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 25) | ((values[valuesOffset] & 0xffffffffL) >>> 38);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 26) | ((values[valuesOffset] & 0xffffffffL) >>> 37);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 27) | ((values[valuesOffset] & 0xffffffffL) >>> 36);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 28) | ((values[valuesOffset] & 0xffffffffL) >>> 35);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 29) | ((values[valuesOffset] & 0xffffffffL) >>> 34);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 30) | ((values[valuesOffset] & 0xffffffffL) >>> 33);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 31) | ((values[valuesOffset] & 0xffffffffL) >>> 32);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 32) | ((values[valuesOffset] & 0xffffffffL) >>> 31);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 33) | ((values[valuesOffset] & 0xffffffffL) >>> 30);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 34) | ((values[valuesOffset] & 0xffffffffL) >>> 29);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 35) | ((values[valuesOffset] & 0xffffffffL) >>> 28);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 36) | ((values[valuesOffset] & 0xffffffffL) >>> 27);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 37) | ((values[valuesOffset] & 0xffffffffL) >>> 26);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 38) | ((values[valuesOffset] & 0xffffffffL) >>> 25);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 39) | ((values[valuesOffset] & 0xffffffffL) >>> 24);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 40) | ((values[valuesOffset] & 0xffffffffL) >>> 23);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 41) | ((values[valuesOffset] & 0xffffffffL) >>> 22);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 42) | ((values[valuesOffset] & 0xffffffffL) >>> 21);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 43) | ((values[valuesOffset] & 0xffffffffL) >>> 20);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 44) | ((values[valuesOffset] & 0xffffffffL) >>> 19);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 45) | ((values[valuesOffset] & 0xffffffffL) >>> 18);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 46) | ((values[valuesOffset] & 0xffffffffL) >>> 17);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 47) | ((values[valuesOffset] & 0xffffffffL) >>> 16);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 48) | ((values[valuesOffset] & 0xffffffffL) >>> 15);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 49) | ((values[valuesOffset] & 0xffffffffL) >>> 14);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 50) | ((values[valuesOffset] & 0xffffffffL) >>> 13);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 51) | ((values[valuesOffset] & 0xffffffffL) >>> 12);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 52) | ((values[valuesOffset] & 0xffffffffL) >>> 11);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 53) | ((values[valuesOffset] & 0xffffffffL) >>> 10);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 54) | ((values[valuesOffset] & 0xffffffffL) >>> 9);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 55) | ((values[valuesOffset] & 0xffffffffL) >>> 8);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 56) | ((values[valuesOffset] & 0xffffffffL) >>> 7);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 57) | ((values[valuesOffset] & 0xffffffffL) >>> 6);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 58) | ((values[valuesOffset] & 0xffffffffL) >>> 5);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 59) | ((values[valuesOffset] & 0xffffffffL) >>> 4);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 60) | ((values[valuesOffset] & 0xffffffffL) >>> 3);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 61) | ((values[valuesOffset] & 0xffffffffL) >>> 2);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 62) | ((values[valuesOffset] & 0xffffffffL) >>> 1);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 63) | (values[valuesOffset++] & 0xffffffffL);
+      }
+    }
+
+    public void encode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) {
+      assert blocksOffset + iterations * blockCount() <= blocks.length;
+      assert valuesOffset + iterations * valueCount() <= values.length;
+      for (int i = 0; i < iterations; ++i) {
+        blocks[blocksOffset++] = (values[valuesOffset++] << 1) | (values[valuesOffset] >>> 62);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 2) | (values[valuesOffset] >>> 61);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 3) | (values[valuesOffset] >>> 60);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 4) | (values[valuesOffset] >>> 59);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 5) | (values[valuesOffset] >>> 58);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 6) | (values[valuesOffset] >>> 57);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 7) | (values[valuesOffset] >>> 56);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 8) | (values[valuesOffset] >>> 55);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 9) | (values[valuesOffset] >>> 54);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 10) | (values[valuesOffset] >>> 53);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 11) | (values[valuesOffset] >>> 52);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 12) | (values[valuesOffset] >>> 51);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 13) | (values[valuesOffset] >>> 50);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 14) | (values[valuesOffset] >>> 49);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 15) | (values[valuesOffset] >>> 48);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 16) | (values[valuesOffset] >>> 47);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 17) | (values[valuesOffset] >>> 46);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 18) | (values[valuesOffset] >>> 45);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 19) | (values[valuesOffset] >>> 44);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 20) | (values[valuesOffset] >>> 43);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 21) | (values[valuesOffset] >>> 42);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 22) | (values[valuesOffset] >>> 41);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 23) | (values[valuesOffset] >>> 40);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 24) | (values[valuesOffset] >>> 39);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 25) | (values[valuesOffset] >>> 38);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 26) | (values[valuesOffset] >>> 37);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 27) | (values[valuesOffset] >>> 36);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 28) | (values[valuesOffset] >>> 35);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 29) | (values[valuesOffset] >>> 34);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 30) | (values[valuesOffset] >>> 33);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 31) | (values[valuesOffset] >>> 32);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 32) | (values[valuesOffset] >>> 31);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 33) | (values[valuesOffset] >>> 30);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 34) | (values[valuesOffset] >>> 29);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 35) | (values[valuesOffset] >>> 28);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 36) | (values[valuesOffset] >>> 27);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 37) | (values[valuesOffset] >>> 26);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 38) | (values[valuesOffset] >>> 25);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 39) | (values[valuesOffset] >>> 24);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 40) | (values[valuesOffset] >>> 23);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 41) | (values[valuesOffset] >>> 22);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 42) | (values[valuesOffset] >>> 21);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 43) | (values[valuesOffset] >>> 20);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 44) | (values[valuesOffset] >>> 19);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 45) | (values[valuesOffset] >>> 18);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 46) | (values[valuesOffset] >>> 17);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 47) | (values[valuesOffset] >>> 16);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 48) | (values[valuesOffset] >>> 15);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 49) | (values[valuesOffset] >>> 14);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 50) | (values[valuesOffset] >>> 13);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 51) | (values[valuesOffset] >>> 12);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 52) | (values[valuesOffset] >>> 11);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 53) | (values[valuesOffset] >>> 10);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 54) | (values[valuesOffset] >>> 9);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 55) | (values[valuesOffset] >>> 8);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 56) | (values[valuesOffset] >>> 7);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 57) | (values[valuesOffset] >>> 6);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 58) | (values[valuesOffset] >>> 5);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 59) | (values[valuesOffset] >>> 4);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 60) | (values[valuesOffset] >>> 3);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 61) | (values[valuesOffset] >>> 2);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 62) | (values[valuesOffset] >>> 1);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 63) | values[valuesOffset++];
+      }
+    }
+
+}

Added: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked64.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked64.java?rev=1376305&view=auto
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked64.java (added)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked64.java Wed Aug 22 23:13:40 2012
@@ -0,0 +1,48 @@
+// This file has been automatically generated, DO NOT EDIT
+
+package org.apache.lucene.util.packed;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import java.nio.LongBuffer;
+import java.nio.ByteBuffer;
+
+/**
+ * Efficient sequential read/write of packed integers.
+ */
+final class BulkOperationPacked64 extends BulkOperation {
+    public int blockCount() {
+      return 1;
+    }
+
+    public int valueCount() {
+      return 1;
+    }
+
+    public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {
+      System.arraycopy(blocks, blocksOffset, values, valuesOffset, valueCount() * iterations);
+    }
+
+    public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {
+      LongBuffer.wrap(values, valuesOffset, iterations * valueCount()).put(ByteBuffer.wrap(blocks, blocksOffset, 8 * iterations * blockCount()).asLongBuffer());
+    }
+
+    public void encode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) {
+      System.arraycopy(values, valuesOffset, blocks, blocksOffset, valueCount() * iterations);
+    }
+}



Mime
View raw message