lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1376305 [25/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/BulkOperationPacked50.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked50.java?rev=1376305&view=auto
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked50.java (added)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked50.java Wed Aug 22 23:13:40 2012
@@ -0,0 +1,405 @@
+// 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 BulkOperationPacked50 extends BulkOperation {
+    public int blockCount() {
+      return 25;
+    }
+
+    public int valueCount() {
+      return 32;
+    }
+
+    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 >>> 14;
+        final long block1 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block0 & 16383L) << 36) | (block1 >>> 28);
+        final long block2 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block1 & 268435455L) << 22) | (block2 >>> 42);
+        final long block3 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block2 & 4398046511103L) << 8) | (block3 >>> 56);
+        values[valuesOffset++] = (block3 >>> 6) & 1125899906842623L;
+        final long block4 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block3 & 63L) << 44) | (block4 >>> 20);
+        final long block5 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block4 & 1048575L) << 30) | (block5 >>> 34);
+        final long block6 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block5 & 17179869183L) << 16) | (block6 >>> 48);
+        final long block7 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block6 & 281474976710655L) << 2) | (block7 >>> 62);
+        values[valuesOffset++] = (block7 >>> 12) & 1125899906842623L;
+        final long block8 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block7 & 4095L) << 38) | (block8 >>> 26);
+        final long block9 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block8 & 67108863L) << 24) | (block9 >>> 40);
+        final long block10 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block9 & 1099511627775L) << 10) | (block10 >>> 54);
+        values[valuesOffset++] = (block10 >>> 4) & 1125899906842623L;
+        final long block11 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block10 & 15L) << 46) | (block11 >>> 18);
+        final long block12 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block11 & 262143L) << 32) | (block12 >>> 32);
+        final long block13 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block12 & 4294967295L) << 18) | (block13 >>> 46);
+        final long block14 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block13 & 70368744177663L) << 4) | (block14 >>> 60);
+        values[valuesOffset++] = (block14 >>> 10) & 1125899906842623L;
+        final long block15 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block14 & 1023L) << 40) | (block15 >>> 24);
+        final long block16 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block15 & 16777215L) << 26) | (block16 >>> 38);
+        final long block17 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block16 & 274877906943L) << 12) | (block17 >>> 52);
+        values[valuesOffset++] = (block17 >>> 2) & 1125899906842623L;
+        final long block18 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block17 & 3L) << 48) | (block18 >>> 16);
+        final long block19 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block18 & 65535L) << 34) | (block19 >>> 30);
+        final long block20 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block19 & 1073741823L) << 20) | (block20 >>> 44);
+        final long block21 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block20 & 17592186044415L) << 6) | (block21 >>> 58);
+        values[valuesOffset++] = (block21 >>> 8) & 1125899906842623L;
+        final long block22 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block21 & 255L) << 42) | (block22 >>> 22);
+        final long block23 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block22 & 4194303L) << 28) | (block23 >>> 36);
+        final long block24 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block23 & 68719476735L) << 14) | (block24 >>> 50);
+        values[valuesOffset++] = block24 & 1125899906842623L;
+      }
+    }
+
+    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;
+        values[valuesOffset++] = (byte0 << 42) | (byte1 << 34) | (byte2 << 26) | (byte3 << 18) | (byte4 << 10) | (byte5 << 2) | (byte6 >>> 6);
+        final long byte7 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte6 & 63) << 44) | (byte7 << 36) | (byte8 << 28) | (byte9 << 20) | (byte10 << 12) | (byte11 << 4) | (byte12 >>> 4);
+        final long byte13 = blocks[blocksOffset++] & 0xFF;
+        final long byte14 = blocks[blocksOffset++] & 0xFF;
+        final long byte15 = blocks[blocksOffset++] & 0xFF;
+        final long byte16 = blocks[blocksOffset++] & 0xFF;
+        final long byte17 = blocks[blocksOffset++] & 0xFF;
+        final long byte18 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte12 & 15) << 46) | (byte13 << 38) | (byte14 << 30) | (byte15 << 22) | (byte16 << 14) | (byte17 << 6) | (byte18 >>> 2);
+        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;
+        final long byte24 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte18 & 3) << 48) | (byte19 << 40) | (byte20 << 32) | (byte21 << 24) | (byte22 << 16) | (byte23 << 8) | byte24;
+        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++] = (byte25 << 42) | (byte26 << 34) | (byte27 << 26) | (byte28 << 18) | (byte29 << 10) | (byte30 << 2) | (byte31 >>> 6);
+        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;
+        values[valuesOffset++] = ((byte31 & 63) << 44) | (byte32 << 36) | (byte33 << 28) | (byte34 << 20) | (byte35 << 12) | (byte36 << 4) | (byte37 >>> 4);
+        final long byte38 = blocks[blocksOffset++] & 0xFF;
+        final long byte39 = blocks[blocksOffset++] & 0xFF;
+        final long byte40 = blocks[blocksOffset++] & 0xFF;
+        final long byte41 = blocks[blocksOffset++] & 0xFF;
+        final long byte42 = blocks[blocksOffset++] & 0xFF;
+        final long byte43 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte37 & 15) << 46) | (byte38 << 38) | (byte39 << 30) | (byte40 << 22) | (byte41 << 14) | (byte42 << 6) | (byte43 >>> 2);
+        final long byte44 = blocks[blocksOffset++] & 0xFF;
+        final long byte45 = blocks[blocksOffset++] & 0xFF;
+        final long byte46 = blocks[blocksOffset++] & 0xFF;
+        final long byte47 = blocks[blocksOffset++] & 0xFF;
+        final long byte48 = blocks[blocksOffset++] & 0xFF;
+        final long byte49 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte43 & 3) << 48) | (byte44 << 40) | (byte45 << 32) | (byte46 << 24) | (byte47 << 16) | (byte48 << 8) | byte49;
+        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;
+        final long byte56 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte50 << 42) | (byte51 << 34) | (byte52 << 26) | (byte53 << 18) | (byte54 << 10) | (byte55 << 2) | (byte56 >>> 6);
+        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++] = ((byte56 & 63) << 44) | (byte57 << 36) | (byte58 << 28) | (byte59 << 20) | (byte60 << 12) | (byte61 << 4) | (byte62 >>> 4);
+        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;
+        values[valuesOffset++] = ((byte62 & 15) << 46) | (byte63 << 38) | (byte64 << 30) | (byte65 << 22) | (byte66 << 14) | (byte67 << 6) | (byte68 >>> 2);
+        final long byte69 = blocks[blocksOffset++] & 0xFF;
+        final long byte70 = blocks[blocksOffset++] & 0xFF;
+        final long byte71 = blocks[blocksOffset++] & 0xFF;
+        final long byte72 = blocks[blocksOffset++] & 0xFF;
+        final long byte73 = blocks[blocksOffset++] & 0xFF;
+        final long byte74 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte68 & 3) << 48) | (byte69 << 40) | (byte70 << 32) | (byte71 << 24) | (byte72 << 16) | (byte73 << 8) | byte74;
+        final long byte75 = blocks[blocksOffset++] & 0xFF;
+        final long byte76 = blocks[blocksOffset++] & 0xFF;
+        final long byte77 = blocks[blocksOffset++] & 0xFF;
+        final long byte78 = blocks[blocksOffset++] & 0xFF;
+        final long byte79 = blocks[blocksOffset++] & 0xFF;
+        final long byte80 = blocks[blocksOffset++] & 0xFF;
+        final long byte81 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte75 << 42) | (byte76 << 34) | (byte77 << 26) | (byte78 << 18) | (byte79 << 10) | (byte80 << 2) | (byte81 >>> 6);
+        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;
+        final long byte87 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte81 & 63) << 44) | (byte82 << 36) | (byte83 << 28) | (byte84 << 20) | (byte85 << 12) | (byte86 << 4) | (byte87 >>> 4);
+        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;
+        values[valuesOffset++] = ((byte87 & 15) << 46) | (byte88 << 38) | (byte89 << 30) | (byte90 << 22) | (byte91 << 14) | (byte92 << 6) | (byte93 >>> 2);
+        final long byte94 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte93 & 3) << 48) | (byte94 << 40) | (byte95 << 32) | (byte96 << 24) | (byte97 << 16) | (byte98 << 8) | byte99;
+        final long byte100 = blocks[blocksOffset++] & 0xFF;
+        final long byte101 = blocks[blocksOffset++] & 0xFF;
+        final long byte102 = blocks[blocksOffset++] & 0xFF;
+        final long byte103 = blocks[blocksOffset++] & 0xFF;
+        final long byte104 = blocks[blocksOffset++] & 0xFF;
+        final long byte105 = blocks[blocksOffset++] & 0xFF;
+        final long byte106 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte100 << 42) | (byte101 << 34) | (byte102 << 26) | (byte103 << 18) | (byte104 << 10) | (byte105 << 2) | (byte106 >>> 6);
+        final long byte107 = blocks[blocksOffset++] & 0xFF;
+        final long byte108 = blocks[blocksOffset++] & 0xFF;
+        final long byte109 = blocks[blocksOffset++] & 0xFF;
+        final long byte110 = blocks[blocksOffset++] & 0xFF;
+        final long byte111 = blocks[blocksOffset++] & 0xFF;
+        final long byte112 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte106 & 63) << 44) | (byte107 << 36) | (byte108 << 28) | (byte109 << 20) | (byte110 << 12) | (byte111 << 4) | (byte112 >>> 4);
+        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++] = ((byte112 & 15) << 46) | (byte113 << 38) | (byte114 << 30) | (byte115 << 22) | (byte116 << 14) | (byte117 << 6) | (byte118 >>> 2);
+        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;
+        values[valuesOffset++] = ((byte118 & 3) << 48) | (byte119 << 40) | (byte120 << 32) | (byte121 << 24) | (byte122 << 16) | (byte123 << 8) | byte124;
+        final long byte125 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = (byte125 << 42) | (byte126 << 34) | (byte127 << 26) | (byte128 << 18) | (byte129 << 10) | (byte130 << 2) | (byte131 >>> 6);
+        final long byte132 = blocks[blocksOffset++] & 0xFF;
+        final long byte133 = blocks[blocksOffset++] & 0xFF;
+        final long byte134 = blocks[blocksOffset++] & 0xFF;
+        final long byte135 = blocks[blocksOffset++] & 0xFF;
+        final long byte136 = blocks[blocksOffset++] & 0xFF;
+        final long byte137 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte131 & 63) << 44) | (byte132 << 36) | (byte133 << 28) | (byte134 << 20) | (byte135 << 12) | (byte136 << 4) | (byte137 >>> 4);
+        final long byte138 = blocks[blocksOffset++] & 0xFF;
+        final long byte139 = blocks[blocksOffset++] & 0xFF;
+        final long byte140 = blocks[blocksOffset++] & 0xFF;
+        final long byte141 = blocks[blocksOffset++] & 0xFF;
+        final long byte142 = blocks[blocksOffset++] & 0xFF;
+        final long byte143 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte137 & 15) << 46) | (byte138 << 38) | (byte139 << 30) | (byte140 << 22) | (byte141 << 14) | (byte142 << 6) | (byte143 >>> 2);
+        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++] = ((byte143 & 3) << 48) | (byte144 << 40) | (byte145 << 32) | (byte146 << 24) | (byte147 << 16) | (byte148 << 8) | byte149;
+        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;
+        values[valuesOffset++] = (byte150 << 42) | (byte151 << 34) | (byte152 << 26) | (byte153 << 18) | (byte154 << 10) | (byte155 << 2) | (byte156 >>> 6);
+        final long byte157 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte156 & 63) << 44) | (byte157 << 36) | (byte158 << 28) | (byte159 << 20) | (byte160 << 12) | (byte161 << 4) | (byte162 >>> 4);
+        final long byte163 = blocks[blocksOffset++] & 0xFF;
+        final long byte164 = blocks[blocksOffset++] & 0xFF;
+        final long byte165 = blocks[blocksOffset++] & 0xFF;
+        final long byte166 = blocks[blocksOffset++] & 0xFF;
+        final long byte167 = blocks[blocksOffset++] & 0xFF;
+        final long byte168 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte162 & 15) << 46) | (byte163 << 38) | (byte164 << 30) | (byte165 << 22) | (byte166 << 14) | (byte167 << 6) | (byte168 >>> 2);
+        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;
+        final long byte174 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte168 & 3) << 48) | (byte169 << 40) | (byte170 << 32) | (byte171 << 24) | (byte172 << 16) | (byte173 << 8) | byte174;
+        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++] = (byte175 << 42) | (byte176 << 34) | (byte177 << 26) | (byte178 << 18) | (byte179 << 10) | (byte180 << 2) | (byte181 >>> 6);
+        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;
+        values[valuesOffset++] = ((byte181 & 63) << 44) | (byte182 << 36) | (byte183 << 28) | (byte184 << 20) | (byte185 << 12) | (byte186 << 4) | (byte187 >>> 4);
+        final long byte188 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte187 & 15) << 46) | (byte188 << 38) | (byte189 << 30) | (byte190 << 22) | (byte191 << 14) | (byte192 << 6) | (byte193 >>> 2);
+        final long byte194 = blocks[blocksOffset++] & 0xFF;
+        final long byte195 = blocks[blocksOffset++] & 0xFF;
+        final long byte196 = blocks[blocksOffset++] & 0xFF;
+        final long byte197 = blocks[blocksOffset++] & 0xFF;
+        final long byte198 = blocks[blocksOffset++] & 0xFF;
+        final long byte199 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte193 & 3) << 48) | (byte194 << 40) | (byte195 << 32) | (byte196 << 24) | (byte197 << 16) | (byte198 << 8) | byte199;
+      }
+    }
+
+    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) << 14) | ((values[valuesOffset] & 0xffffffffL) >>> 36);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 28) | ((values[valuesOffset] & 0xffffffffL) >>> 22);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 42) | ((values[valuesOffset] & 0xffffffffL) >>> 8);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 56) | ((values[valuesOffset++] & 0xffffffffL) << 6) | ((values[valuesOffset] & 0xffffffffL) >>> 44);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 20) | ((values[valuesOffset] & 0xffffffffL) >>> 30);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 34) | ((values[valuesOffset] & 0xffffffffL) >>> 16);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 48) | ((values[valuesOffset] & 0xffffffffL) >>> 2);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 62) | ((values[valuesOffset++] & 0xffffffffL) << 12) | ((values[valuesOffset] & 0xffffffffL) >>> 38);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 26) | ((values[valuesOffset] & 0xffffffffL) >>> 24);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 40) | ((values[valuesOffset] & 0xffffffffL) >>> 10);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 54) | ((values[valuesOffset++] & 0xffffffffL) << 4) | ((values[valuesOffset] & 0xffffffffL) >>> 46);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 18) | ((values[valuesOffset] & 0xffffffffL) >>> 32);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 32) | ((values[valuesOffset] & 0xffffffffL) >>> 18);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 46) | ((values[valuesOffset] & 0xffffffffL) >>> 4);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 60) | ((values[valuesOffset++] & 0xffffffffL) << 10) | ((values[valuesOffset] & 0xffffffffL) >>> 40);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 24) | ((values[valuesOffset] & 0xffffffffL) >>> 26);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 38) | ((values[valuesOffset] & 0xffffffffL) >>> 12);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 52) | ((values[valuesOffset++] & 0xffffffffL) << 2) | ((values[valuesOffset] & 0xffffffffL) >>> 48);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 16) | ((values[valuesOffset] & 0xffffffffL) >>> 34);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 30) | ((values[valuesOffset] & 0xffffffffL) >>> 20);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 44) | ((values[valuesOffset] & 0xffffffffL) >>> 6);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 58) | ((values[valuesOffset++] & 0xffffffffL) << 8) | ((values[valuesOffset] & 0xffffffffL) >>> 42);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 22) | ((values[valuesOffset] & 0xffffffffL) >>> 28);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 36) | ((values[valuesOffset] & 0xffffffffL) >>> 14);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 50) | (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++] << 14) | (values[valuesOffset] >>> 36);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 28) | (values[valuesOffset] >>> 22);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 42) | (values[valuesOffset] >>> 8);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 56) | (values[valuesOffset++] << 6) | (values[valuesOffset] >>> 44);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 20) | (values[valuesOffset] >>> 30);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 34) | (values[valuesOffset] >>> 16);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 48) | (values[valuesOffset] >>> 2);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 62) | (values[valuesOffset++] << 12) | (values[valuesOffset] >>> 38);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 26) | (values[valuesOffset] >>> 24);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 40) | (values[valuesOffset] >>> 10);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 54) | (values[valuesOffset++] << 4) | (values[valuesOffset] >>> 46);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 18) | (values[valuesOffset] >>> 32);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 32) | (values[valuesOffset] >>> 18);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 46) | (values[valuesOffset] >>> 4);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 60) | (values[valuesOffset++] << 10) | (values[valuesOffset] >>> 40);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 24) | (values[valuesOffset] >>> 26);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 38) | (values[valuesOffset] >>> 12);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 52) | (values[valuesOffset++] << 2) | (values[valuesOffset] >>> 48);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 16) | (values[valuesOffset] >>> 34);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 30) | (values[valuesOffset] >>> 20);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 44) | (values[valuesOffset] >>> 6);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 58) | (values[valuesOffset++] << 8) | (values[valuesOffset] >>> 42);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 22) | (values[valuesOffset] >>> 28);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 36) | (values[valuesOffset] >>> 14);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 50) | values[valuesOffset++];
+      }
+    }
+
+}

Added: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked51.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked51.java?rev=1376305&view=auto
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked51.java (added)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/packed/BulkOperationPacked51.java Wed Aug 22 23:13:40 2012
@@ -0,0 +1,755 @@
+// 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 BulkOperationPacked51 extends BulkOperation {
+    public int blockCount() {
+      return 51;
+    }
+
+    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 >>> 13;
+        final long block1 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block0 & 8191L) << 38) | (block1 >>> 26);
+        final long block2 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block1 & 67108863L) << 25) | (block2 >>> 39);
+        final long block3 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block2 & 549755813887L) << 12) | (block3 >>> 52);
+        values[valuesOffset++] = (block3 >>> 1) & 2251799813685247L;
+        final long block4 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block3 & 1L) << 50) | (block4 >>> 14);
+        final long block5 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block4 & 16383L) << 37) | (block5 >>> 27);
+        final long block6 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block5 & 134217727L) << 24) | (block6 >>> 40);
+        final long block7 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block6 & 1099511627775L) << 11) | (block7 >>> 53);
+        values[valuesOffset++] = (block7 >>> 2) & 2251799813685247L;
+        final long block8 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block7 & 3L) << 49) | (block8 >>> 15);
+        final long block9 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block8 & 32767L) << 36) | (block9 >>> 28);
+        final long block10 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block9 & 268435455L) << 23) | (block10 >>> 41);
+        final long block11 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block10 & 2199023255551L) << 10) | (block11 >>> 54);
+        values[valuesOffset++] = (block11 >>> 3) & 2251799813685247L;
+        final long block12 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block11 & 7L) << 48) | (block12 >>> 16);
+        final long block13 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block12 & 65535L) << 35) | (block13 >>> 29);
+        final long block14 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block13 & 536870911L) << 22) | (block14 >>> 42);
+        final long block15 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block14 & 4398046511103L) << 9) | (block15 >>> 55);
+        values[valuesOffset++] = (block15 >>> 4) & 2251799813685247L;
+        final long block16 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block15 & 15L) << 47) | (block16 >>> 17);
+        final long block17 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block16 & 131071L) << 34) | (block17 >>> 30);
+        final long block18 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block17 & 1073741823L) << 21) | (block18 >>> 43);
+        final long block19 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block18 & 8796093022207L) << 8) | (block19 >>> 56);
+        values[valuesOffset++] = (block19 >>> 5) & 2251799813685247L;
+        final long block20 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block19 & 31L) << 46) | (block20 >>> 18);
+        final long block21 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block20 & 262143L) << 33) | (block21 >>> 31);
+        final long block22 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block21 & 2147483647L) << 20) | (block22 >>> 44);
+        final long block23 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block22 & 17592186044415L) << 7) | (block23 >>> 57);
+        values[valuesOffset++] = (block23 >>> 6) & 2251799813685247L;
+        final long block24 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block23 & 63L) << 45) | (block24 >>> 19);
+        final long block25 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block24 & 524287L) << 32) | (block25 >>> 32);
+        final long block26 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block25 & 4294967295L) << 19) | (block26 >>> 45);
+        final long block27 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block26 & 35184372088831L) << 6) | (block27 >>> 58);
+        values[valuesOffset++] = (block27 >>> 7) & 2251799813685247L;
+        final long block28 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block27 & 127L) << 44) | (block28 >>> 20);
+        final long block29 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block28 & 1048575L) << 31) | (block29 >>> 33);
+        final long block30 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block29 & 8589934591L) << 18) | (block30 >>> 46);
+        final long block31 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block30 & 70368744177663L) << 5) | (block31 >>> 59);
+        values[valuesOffset++] = (block31 >>> 8) & 2251799813685247L;
+        final long block32 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block31 & 255L) << 43) | (block32 >>> 21);
+        final long block33 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block32 & 2097151L) << 30) | (block33 >>> 34);
+        final long block34 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block33 & 17179869183L) << 17) | (block34 >>> 47);
+        final long block35 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block34 & 140737488355327L) << 4) | (block35 >>> 60);
+        values[valuesOffset++] = (block35 >>> 9) & 2251799813685247L;
+        final long block36 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block35 & 511L) << 42) | (block36 >>> 22);
+        final long block37 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block36 & 4194303L) << 29) | (block37 >>> 35);
+        final long block38 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block37 & 34359738367L) << 16) | (block38 >>> 48);
+        final long block39 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block38 & 281474976710655L) << 3) | (block39 >>> 61);
+        values[valuesOffset++] = (block39 >>> 10) & 2251799813685247L;
+        final long block40 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block39 & 1023L) << 41) | (block40 >>> 23);
+        final long block41 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block40 & 8388607L) << 28) | (block41 >>> 36);
+        final long block42 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block41 & 68719476735L) << 15) | (block42 >>> 49);
+        final long block43 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block42 & 562949953421311L) << 2) | (block43 >>> 62);
+        values[valuesOffset++] = (block43 >>> 11) & 2251799813685247L;
+        final long block44 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block43 & 2047L) << 40) | (block44 >>> 24);
+        final long block45 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block44 & 16777215L) << 27) | (block45 >>> 37);
+        final long block46 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block45 & 137438953471L) << 14) | (block46 >>> 50);
+        final long block47 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block46 & 1125899906842623L) << 1) | (block47 >>> 63);
+        values[valuesOffset++] = (block47 >>> 12) & 2251799813685247L;
+        final long block48 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block47 & 4095L) << 39) | (block48 >>> 25);
+        final long block49 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block48 & 33554431L) << 26) | (block49 >>> 38);
+        final long block50 = blocks[blocksOffset++];
+        values[valuesOffset++] = ((block49 & 274877906943L) << 13) | (block50 >>> 51);
+        values[valuesOffset++] = block50 & 2251799813685247L;
+      }
+    }
+
+    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;
+        values[valuesOffset++] = (byte0 << 43) | (byte1 << 35) | (byte2 << 27) | (byte3 << 19) | (byte4 << 11) | (byte5 << 3) | (byte6 >>> 5);
+        final long byte7 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte6 & 31) << 46) | (byte7 << 38) | (byte8 << 30) | (byte9 << 22) | (byte10 << 14) | (byte11 << 6) | (byte12 >>> 2);
+        final long byte13 = blocks[blocksOffset++] & 0xFF;
+        final long byte14 = blocks[blocksOffset++] & 0xFF;
+        final long byte15 = blocks[blocksOffset++] & 0xFF;
+        final long byte16 = blocks[blocksOffset++] & 0xFF;
+        final long byte17 = blocks[blocksOffset++] & 0xFF;
+        final long byte18 = blocks[blocksOffset++] & 0xFF;
+        final long byte19 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte12 & 3) << 49) | (byte13 << 41) | (byte14 << 33) | (byte15 << 25) | (byte16 << 17) | (byte17 << 9) | (byte18 << 1) | (byte19 >>> 7);
+        final long byte20 = blocks[blocksOffset++] & 0xFF;
+        final long byte21 = blocks[blocksOffset++] & 0xFF;
+        final long byte22 = blocks[blocksOffset++] & 0xFF;
+        final long byte23 = blocks[blocksOffset++] & 0xFF;
+        final long byte24 = blocks[blocksOffset++] & 0xFF;
+        final long byte25 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte19 & 127) << 44) | (byte20 << 36) | (byte21 << 28) | (byte22 << 20) | (byte23 << 12) | (byte24 << 4) | (byte25 >>> 4);
+        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++] = ((byte25 & 15) << 47) | (byte26 << 39) | (byte27 << 31) | (byte28 << 23) | (byte29 << 15) | (byte30 << 7) | (byte31 >>> 1);
+        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;
+        values[valuesOffset++] = ((byte31 & 1) << 50) | (byte32 << 42) | (byte33 << 34) | (byte34 << 26) | (byte35 << 18) | (byte36 << 10) | (byte37 << 2) | (byte38 >>> 6);
+        final long byte39 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte38 & 63) << 45) | (byte39 << 37) | (byte40 << 29) | (byte41 << 21) | (byte42 << 13) | (byte43 << 5) | (byte44 >>> 3);
+        final long byte45 = blocks[blocksOffset++] & 0xFF;
+        final long byte46 = blocks[blocksOffset++] & 0xFF;
+        final long byte47 = blocks[blocksOffset++] & 0xFF;
+        final long byte48 = blocks[blocksOffset++] & 0xFF;
+        final long byte49 = blocks[blocksOffset++] & 0xFF;
+        final long byte50 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte44 & 7) << 48) | (byte45 << 40) | (byte46 << 32) | (byte47 << 24) | (byte48 << 16) | (byte49 << 8) | byte50;
+        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;
+        final long byte56 = blocks[blocksOffset++] & 0xFF;
+        final long byte57 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte51 << 43) | (byte52 << 35) | (byte53 << 27) | (byte54 << 19) | (byte55 << 11) | (byte56 << 3) | (byte57 >>> 5);
+        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;
+        final long byte63 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte57 & 31) << 46) | (byte58 << 38) | (byte59 << 30) | (byte60 << 22) | (byte61 << 14) | (byte62 << 6) | (byte63 >>> 2);
+        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 & 3) << 49) | (byte64 << 41) | (byte65 << 33) | (byte66 << 25) | (byte67 << 17) | (byte68 << 9) | (byte69 << 1) | (byte70 >>> 7);
+        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;
+        values[valuesOffset++] = ((byte70 & 127) << 44) | (byte71 << 36) | (byte72 << 28) | (byte73 << 20) | (byte74 << 12) | (byte75 << 4) | (byte76 >>> 4);
+        final long byte77 = blocks[blocksOffset++] & 0xFF;
+        final long byte78 = blocks[blocksOffset++] & 0xFF;
+        final long byte79 = blocks[blocksOffset++] & 0xFF;
+        final long byte80 = blocks[blocksOffset++] & 0xFF;
+        final long byte81 = blocks[blocksOffset++] & 0xFF;
+        final long byte82 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte76 & 15) << 47) | (byte77 << 39) | (byte78 << 31) | (byte79 << 23) | (byte80 << 15) | (byte81 << 7) | (byte82 >>> 1);
+        final long byte83 = blocks[blocksOffset++] & 0xFF;
+        final long byte84 = blocks[blocksOffset++] & 0xFF;
+        final long byte85 = blocks[blocksOffset++] & 0xFF;
+        final long byte86 = blocks[blocksOffset++] & 0xFF;
+        final long byte87 = blocks[blocksOffset++] & 0xFF;
+        final long byte88 = blocks[blocksOffset++] & 0xFF;
+        final long byte89 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte82 & 1) << 50) | (byte83 << 42) | (byte84 << 34) | (byte85 << 26) | (byte86 << 18) | (byte87 << 10) | (byte88 << 2) | (byte89 >>> 6);
+        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;
+        final long byte95 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte89 & 63) << 45) | (byte90 << 37) | (byte91 << 29) | (byte92 << 21) | (byte93 << 13) | (byte94 << 5) | (byte95 >>> 3);
+        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;
+        values[valuesOffset++] = ((byte95 & 7) << 48) | (byte96 << 40) | (byte97 << 32) | (byte98 << 24) | (byte99 << 16) | (byte100 << 8) | byte101;
+        final long byte102 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = (byte102 << 43) | (byte103 << 35) | (byte104 << 27) | (byte105 << 19) | (byte106 << 11) | (byte107 << 3) | (byte108 >>> 5);
+        final long byte109 = blocks[blocksOffset++] & 0xFF;
+        final long byte110 = blocks[blocksOffset++] & 0xFF;
+        final long byte111 = blocks[blocksOffset++] & 0xFF;
+        final long byte112 = blocks[blocksOffset++] & 0xFF;
+        final long byte113 = blocks[blocksOffset++] & 0xFF;
+        final long byte114 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte108 & 31) << 46) | (byte109 << 38) | (byte110 << 30) | (byte111 << 22) | (byte112 << 14) | (byte113 << 6) | (byte114 >>> 2);
+        final long byte115 = blocks[blocksOffset++] & 0xFF;
+        final long byte116 = blocks[blocksOffset++] & 0xFF;
+        final long byte117 = blocks[blocksOffset++] & 0xFF;
+        final long byte118 = blocks[blocksOffset++] & 0xFF;
+        final long byte119 = blocks[blocksOffset++] & 0xFF;
+        final long byte120 = blocks[blocksOffset++] & 0xFF;
+        final long byte121 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte114 & 3) << 49) | (byte115 << 41) | (byte116 << 33) | (byte117 << 25) | (byte118 << 17) | (byte119 << 9) | (byte120 << 1) | (byte121 >>> 7);
+        final long byte122 = blocks[blocksOffset++] & 0xFF;
+        final long byte123 = blocks[blocksOffset++] & 0xFF;
+        final long byte124 = blocks[blocksOffset++] & 0xFF;
+        final long byte125 = blocks[blocksOffset++] & 0xFF;
+        final long byte126 = blocks[blocksOffset++] & 0xFF;
+        final long byte127 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte121 & 127) << 44) | (byte122 << 36) | (byte123 << 28) | (byte124 << 20) | (byte125 << 12) | (byte126 << 4) | (byte127 >>> 4);
+        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++] = ((byte127 & 15) << 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;
+        values[valuesOffset++] = ((byte133 & 1) << 50) | (byte134 << 42) | (byte135 << 34) | (byte136 << 26) | (byte137 << 18) | (byte138 << 10) | (byte139 << 2) | (byte140 >>> 6);
+        final long byte141 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte140 & 63) << 45) | (byte141 << 37) | (byte142 << 29) | (byte143 << 21) | (byte144 << 13) | (byte145 << 5) | (byte146 >>> 3);
+        final long byte147 = blocks[blocksOffset++] & 0xFF;
+        final long byte148 = blocks[blocksOffset++] & 0xFF;
+        final long byte149 = blocks[blocksOffset++] & 0xFF;
+        final long byte150 = blocks[blocksOffset++] & 0xFF;
+        final long byte151 = blocks[blocksOffset++] & 0xFF;
+        final long byte152 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte146 & 7) << 48) | (byte147 << 40) | (byte148 << 32) | (byte149 << 24) | (byte150 << 16) | (byte151 << 8) | byte152;
+        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;
+        final long byte158 = blocks[blocksOffset++] & 0xFF;
+        final long byte159 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte153 << 43) | (byte154 << 35) | (byte155 << 27) | (byte156 << 19) | (byte157 << 11) | (byte158 << 3) | (byte159 >>> 5);
+        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++] = ((byte159 & 31) << 46) | (byte160 << 38) | (byte161 << 30) | (byte162 << 22) | (byte163 << 14) | (byte164 << 6) | (byte165 >>> 2);
+        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;
+        values[valuesOffset++] = ((byte165 & 3) << 49) | (byte166 << 41) | (byte167 << 33) | (byte168 << 25) | (byte169 << 17) | (byte170 << 9) | (byte171 << 1) | (byte172 >>> 7);
+        final long byte173 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte172 & 127) << 44) | (byte173 << 36) | (byte174 << 28) | (byte175 << 20) | (byte176 << 12) | (byte177 << 4) | (byte178 >>> 4);
+        final long byte179 = blocks[blocksOffset++] & 0xFF;
+        final long byte180 = blocks[blocksOffset++] & 0xFF;
+        final long byte181 = blocks[blocksOffset++] & 0xFF;
+        final long byte182 = blocks[blocksOffset++] & 0xFF;
+        final long byte183 = blocks[blocksOffset++] & 0xFF;
+        final long byte184 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte178 & 15) << 47) | (byte179 << 39) | (byte180 << 31) | (byte181 << 23) | (byte182 << 15) | (byte183 << 7) | (byte184 >>> 1);
+        final long byte185 = blocks[blocksOffset++] & 0xFF;
+        final long byte186 = blocks[blocksOffset++] & 0xFF;
+        final long byte187 = blocks[blocksOffset++] & 0xFF;
+        final long byte188 = blocks[blocksOffset++] & 0xFF;
+        final long byte189 = blocks[blocksOffset++] & 0xFF;
+        final long byte190 = blocks[blocksOffset++] & 0xFF;
+        final long byte191 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte184 & 1) << 50) | (byte185 << 42) | (byte186 << 34) | (byte187 << 26) | (byte188 << 18) | (byte189 << 10) | (byte190 << 2) | (byte191 >>> 6);
+        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;
+        final long byte197 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte191 & 63) << 45) | (byte192 << 37) | (byte193 << 29) | (byte194 << 21) | (byte195 << 13) | (byte196 << 5) | (byte197 >>> 3);
+        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;
+        values[valuesOffset++] = ((byte197 & 7) << 48) | (byte198 << 40) | (byte199 << 32) | (byte200 << 24) | (byte201 << 16) | (byte202 << 8) | byte203;
+        final long byte204 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = (byte204 << 43) | (byte205 << 35) | (byte206 << 27) | (byte207 << 19) | (byte208 << 11) | (byte209 << 3) | (byte210 >>> 5);
+        final long byte211 = blocks[blocksOffset++] & 0xFF;
+        final long byte212 = blocks[blocksOffset++] & 0xFF;
+        final long byte213 = blocks[blocksOffset++] & 0xFF;
+        final long byte214 = blocks[blocksOffset++] & 0xFF;
+        final long byte215 = blocks[blocksOffset++] & 0xFF;
+        final long byte216 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte210 & 31) << 46) | (byte211 << 38) | (byte212 << 30) | (byte213 << 22) | (byte214 << 14) | (byte215 << 6) | (byte216 >>> 2);
+        final long byte217 = blocks[blocksOffset++] & 0xFF;
+        final long byte218 = blocks[blocksOffset++] & 0xFF;
+        final long byte219 = blocks[blocksOffset++] & 0xFF;
+        final long byte220 = blocks[blocksOffset++] & 0xFF;
+        final long byte221 = blocks[blocksOffset++] & 0xFF;
+        final long byte222 = blocks[blocksOffset++] & 0xFF;
+        final long byte223 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte216 & 3) << 49) | (byte217 << 41) | (byte218 << 33) | (byte219 << 25) | (byte220 << 17) | (byte221 << 9) | (byte222 << 1) | (byte223 >>> 7);
+        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;
+        final long byte229 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte223 & 127) << 44) | (byte224 << 36) | (byte225 << 28) | (byte226 << 20) | (byte227 << 12) | (byte228 << 4) | (byte229 >>> 4);
+        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;
+        values[valuesOffset++] = ((byte229 & 15) << 47) | (byte230 << 39) | (byte231 << 31) | (byte232 << 23) | (byte233 << 15) | (byte234 << 7) | (byte235 >>> 1);
+        final long byte236 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte235 & 1) << 50) | (byte236 << 42) | (byte237 << 34) | (byte238 << 26) | (byte239 << 18) | (byte240 << 10) | (byte241 << 2) | (byte242 >>> 6);
+        final long byte243 = blocks[blocksOffset++] & 0xFF;
+        final long byte244 = blocks[blocksOffset++] & 0xFF;
+        final long byte245 = blocks[blocksOffset++] & 0xFF;
+        final long byte246 = blocks[blocksOffset++] & 0xFF;
+        final long byte247 = blocks[blocksOffset++] & 0xFF;
+        final long byte248 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte242 & 63) << 45) | (byte243 << 37) | (byte244 << 29) | (byte245 << 21) | (byte246 << 13) | (byte247 << 5) | (byte248 >>> 3);
+        final long byte249 = blocks[blocksOffset++] & 0xFF;
+        final long byte250 = blocks[blocksOffset++] & 0xFF;
+        final long byte251 = blocks[blocksOffset++] & 0xFF;
+        final long byte252 = blocks[blocksOffset++] & 0xFF;
+        final long byte253 = blocks[blocksOffset++] & 0xFF;
+        final long byte254 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte248 & 7) << 48) | (byte249 << 40) | (byte250 << 32) | (byte251 << 24) | (byte252 << 16) | (byte253 << 8) | byte254;
+        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;
+        final long byte260 = blocks[blocksOffset++] & 0xFF;
+        final long byte261 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte255 << 43) | (byte256 << 35) | (byte257 << 27) | (byte258 << 19) | (byte259 << 11) | (byte260 << 3) | (byte261 >>> 5);
+        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++] = ((byte261 & 31) << 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;
+        values[valuesOffset++] = ((byte267 & 3) << 49) | (byte268 << 41) | (byte269 << 33) | (byte270 << 25) | (byte271 << 17) | (byte272 << 9) | (byte273 << 1) | (byte274 >>> 7);
+        final long byte275 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte274 & 127) << 44) | (byte275 << 36) | (byte276 << 28) | (byte277 << 20) | (byte278 << 12) | (byte279 << 4) | (byte280 >>> 4);
+        final long byte281 = blocks[blocksOffset++] & 0xFF;
+        final long byte282 = blocks[blocksOffset++] & 0xFF;
+        final long byte283 = blocks[blocksOffset++] & 0xFF;
+        final long byte284 = blocks[blocksOffset++] & 0xFF;
+        final long byte285 = blocks[blocksOffset++] & 0xFF;
+        final long byte286 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte280 & 15) << 47) | (byte281 << 39) | (byte282 << 31) | (byte283 << 23) | (byte284 << 15) | (byte285 << 7) | (byte286 >>> 1);
+        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;
+        final long byte292 = blocks[blocksOffset++] & 0xFF;
+        final long byte293 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte286 & 1) << 50) | (byte287 << 42) | (byte288 << 34) | (byte289 << 26) | (byte290 << 18) | (byte291 << 10) | (byte292 << 2) | (byte293 >>> 6);
+        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++] = ((byte293 & 63) << 45) | (byte294 << 37) | (byte295 << 29) | (byte296 << 21) | (byte297 << 13) | (byte298 << 5) | (byte299 >>> 3);
+        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;
+        values[valuesOffset++] = ((byte299 & 7) << 48) | (byte300 << 40) | (byte301 << 32) | (byte302 << 24) | (byte303 << 16) | (byte304 << 8) | byte305;
+        final long byte306 = blocks[blocksOffset++] & 0xFF;
+        final long byte307 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = (byte306 << 43) | (byte307 << 35) | (byte308 << 27) | (byte309 << 19) | (byte310 << 11) | (byte311 << 3) | (byte312 >>> 5);
+        final long byte313 = blocks[blocksOffset++] & 0xFF;
+        final long byte314 = blocks[blocksOffset++] & 0xFF;
+        final long byte315 = blocks[blocksOffset++] & 0xFF;
+        final long byte316 = blocks[blocksOffset++] & 0xFF;
+        final long byte317 = blocks[blocksOffset++] & 0xFF;
+        final long byte318 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte312 & 31) << 46) | (byte313 << 38) | (byte314 << 30) | (byte315 << 22) | (byte316 << 14) | (byte317 << 6) | (byte318 >>> 2);
+        final long byte319 = blocks[blocksOffset++] & 0xFF;
+        final long byte320 = blocks[blocksOffset++] & 0xFF;
+        final long byte321 = blocks[blocksOffset++] & 0xFF;
+        final long byte322 = blocks[blocksOffset++] & 0xFF;
+        final long byte323 = blocks[blocksOffset++] & 0xFF;
+        final long byte324 = blocks[blocksOffset++] & 0xFF;
+        final long byte325 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte318 & 3) << 49) | (byte319 << 41) | (byte320 << 33) | (byte321 << 25) | (byte322 << 17) | (byte323 << 9) | (byte324 << 1) | (byte325 >>> 7);
+        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;
+        final long byte331 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte325 & 127) << 44) | (byte326 << 36) | (byte327 << 28) | (byte328 << 20) | (byte329 << 12) | (byte330 << 4) | (byte331 >>> 4);
+        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;
+        values[valuesOffset++] = ((byte331 & 15) << 47) | (byte332 << 39) | (byte333 << 31) | (byte334 << 23) | (byte335 << 15) | (byte336 << 7) | (byte337 >>> 1);
+        final long byte338 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte337 & 1) << 50) | (byte338 << 42) | (byte339 << 34) | (byte340 << 26) | (byte341 << 18) | (byte342 << 10) | (byte343 << 2) | (byte344 >>> 6);
+        final long byte345 = blocks[blocksOffset++] & 0xFF;
+        final long byte346 = blocks[blocksOffset++] & 0xFF;
+        final long byte347 = blocks[blocksOffset++] & 0xFF;
+        final long byte348 = blocks[blocksOffset++] & 0xFF;
+        final long byte349 = blocks[blocksOffset++] & 0xFF;
+        final long byte350 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte344 & 63) << 45) | (byte345 << 37) | (byte346 << 29) | (byte347 << 21) | (byte348 << 13) | (byte349 << 5) | (byte350 >>> 3);
+        final long byte351 = blocks[blocksOffset++] & 0xFF;
+        final long byte352 = blocks[blocksOffset++] & 0xFF;
+        final long byte353 = blocks[blocksOffset++] & 0xFF;
+        final long byte354 = blocks[blocksOffset++] & 0xFF;
+        final long byte355 = blocks[blocksOffset++] & 0xFF;
+        final long byte356 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte350 & 7) << 48) | (byte351 << 40) | (byte352 << 32) | (byte353 << 24) | (byte354 << 16) | (byte355 << 8) | byte356;
+        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;
+        final long byte363 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = (byte357 << 43) | (byte358 << 35) | (byte359 << 27) | (byte360 << 19) | (byte361 << 11) | (byte362 << 3) | (byte363 >>> 5);
+        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;
+        values[valuesOffset++] = ((byte363 & 31) << 46) | (byte364 << 38) | (byte365 << 30) | (byte366 << 22) | (byte367 << 14) | (byte368 << 6) | (byte369 >>> 2);
+        final long byte370 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte369 & 3) << 49) | (byte370 << 41) | (byte371 << 33) | (byte372 << 25) | (byte373 << 17) | (byte374 << 9) | (byte375 << 1) | (byte376 >>> 7);
+        final long byte377 = blocks[blocksOffset++] & 0xFF;
+        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;
+        values[valuesOffset++] = ((byte376 & 127) << 44) | (byte377 << 36) | (byte378 << 28) | (byte379 << 20) | (byte380 << 12) | (byte381 << 4) | (byte382 >>> 4);
+        final long byte383 = blocks[blocksOffset++] & 0xFF;
+        final long byte384 = blocks[blocksOffset++] & 0xFF;
+        final long byte385 = blocks[blocksOffset++] & 0xFF;
+        final long byte386 = blocks[blocksOffset++] & 0xFF;
+        final long byte387 = blocks[blocksOffset++] & 0xFF;
+        final long byte388 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte382 & 15) << 47) | (byte383 << 39) | (byte384 << 31) | (byte385 << 23) | (byte386 << 15) | (byte387 << 7) | (byte388 >>> 1);
+        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;
+        final long byte394 = blocks[blocksOffset++] & 0xFF;
+        final long byte395 = blocks[blocksOffset++] & 0xFF;
+        values[valuesOffset++] = ((byte388 & 1) << 50) | (byte389 << 42) | (byte390 << 34) | (byte391 << 26) | (byte392 << 18) | (byte393 << 10) | (byte394 << 2) | (byte395 >>> 6);
+        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++] = ((byte395 & 63) << 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;
+        values[valuesOffset++] = ((byte401 & 7) << 48) | (byte402 << 40) | (byte403 << 32) | (byte404 << 24) | (byte405 << 16) | (byte406 << 8) | byte407;
+      }
+    }
+
+    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) << 13) | ((values[valuesOffset] & 0xffffffffL) >>> 38);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 26) | ((values[valuesOffset] & 0xffffffffL) >>> 25);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 39) | ((values[valuesOffset] & 0xffffffffL) >>> 12);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 52) | ((values[valuesOffset++] & 0xffffffffL) << 1) | ((values[valuesOffset] & 0xffffffffL) >>> 50);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 14) | ((values[valuesOffset] & 0xffffffffL) >>> 37);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 27) | ((values[valuesOffset] & 0xffffffffL) >>> 24);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 40) | ((values[valuesOffset] & 0xffffffffL) >>> 11);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 53) | ((values[valuesOffset++] & 0xffffffffL) << 2) | ((values[valuesOffset] & 0xffffffffL) >>> 49);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 15) | ((values[valuesOffset] & 0xffffffffL) >>> 36);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 28) | ((values[valuesOffset] & 0xffffffffL) >>> 23);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 41) | ((values[valuesOffset] & 0xffffffffL) >>> 10);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 54) | ((values[valuesOffset++] & 0xffffffffL) << 3) | ((values[valuesOffset] & 0xffffffffL) >>> 48);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 16) | ((values[valuesOffset] & 0xffffffffL) >>> 35);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 29) | ((values[valuesOffset] & 0xffffffffL) >>> 22);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 42) | ((values[valuesOffset] & 0xffffffffL) >>> 9);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 55) | ((values[valuesOffset++] & 0xffffffffL) << 4) | ((values[valuesOffset] & 0xffffffffL) >>> 47);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 17) | ((values[valuesOffset] & 0xffffffffL) >>> 34);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 30) | ((values[valuesOffset] & 0xffffffffL) >>> 21);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 43) | ((values[valuesOffset] & 0xffffffffL) >>> 8);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 56) | ((values[valuesOffset++] & 0xffffffffL) << 5) | ((values[valuesOffset] & 0xffffffffL) >>> 46);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 18) | ((values[valuesOffset] & 0xffffffffL) >>> 33);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 31) | ((values[valuesOffset] & 0xffffffffL) >>> 20);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 44) | ((values[valuesOffset] & 0xffffffffL) >>> 7);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 57) | ((values[valuesOffset++] & 0xffffffffL) << 6) | ((values[valuesOffset] & 0xffffffffL) >>> 45);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 19) | ((values[valuesOffset] & 0xffffffffL) >>> 32);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 32) | ((values[valuesOffset] & 0xffffffffL) >>> 19);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 45) | ((values[valuesOffset] & 0xffffffffL) >>> 6);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 58) | ((values[valuesOffset++] & 0xffffffffL) << 7) | ((values[valuesOffset] & 0xffffffffL) >>> 44);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 20) | ((values[valuesOffset] & 0xffffffffL) >>> 31);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 33) | ((values[valuesOffset] & 0xffffffffL) >>> 18);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 46) | ((values[valuesOffset] & 0xffffffffL) >>> 5);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 59) | ((values[valuesOffset++] & 0xffffffffL) << 8) | ((values[valuesOffset] & 0xffffffffL) >>> 43);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 21) | ((values[valuesOffset] & 0xffffffffL) >>> 30);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 34) | ((values[valuesOffset] & 0xffffffffL) >>> 17);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 47) | ((values[valuesOffset] & 0xffffffffL) >>> 4);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 60) | ((values[valuesOffset++] & 0xffffffffL) << 9) | ((values[valuesOffset] & 0xffffffffL) >>> 42);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 22) | ((values[valuesOffset] & 0xffffffffL) >>> 29);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 35) | ((values[valuesOffset] & 0xffffffffL) >>> 16);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 48) | ((values[valuesOffset] & 0xffffffffL) >>> 3);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 61) | ((values[valuesOffset++] & 0xffffffffL) << 10) | ((values[valuesOffset] & 0xffffffffL) >>> 41);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 23) | ((values[valuesOffset] & 0xffffffffL) >>> 28);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 36) | ((values[valuesOffset] & 0xffffffffL) >>> 15);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 49) | ((values[valuesOffset] & 0xffffffffL) >>> 2);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 62) | ((values[valuesOffset++] & 0xffffffffL) << 11) | ((values[valuesOffset] & 0xffffffffL) >>> 40);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 24) | ((values[valuesOffset] & 0xffffffffL) >>> 27);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 37) | ((values[valuesOffset] & 0xffffffffL) >>> 14);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 50) | ((values[valuesOffset] & 0xffffffffL) >>> 1);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 63) | ((values[valuesOffset++] & 0xffffffffL) << 12) | ((values[valuesOffset] & 0xffffffffL) >>> 39);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 25) | ((values[valuesOffset] & 0xffffffffL) >>> 26);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 38) | ((values[valuesOffset] & 0xffffffffL) >>> 13);
+        blocks[blocksOffset++] = ((values[valuesOffset++] & 0xffffffffL) << 51) | (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++] << 13) | (values[valuesOffset] >>> 38);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 26) | (values[valuesOffset] >>> 25);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 39) | (values[valuesOffset] >>> 12);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 52) | (values[valuesOffset++] << 1) | (values[valuesOffset] >>> 50);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 14) | (values[valuesOffset] >>> 37);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 27) | (values[valuesOffset] >>> 24);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 40) | (values[valuesOffset] >>> 11);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 53) | (values[valuesOffset++] << 2) | (values[valuesOffset] >>> 49);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 15) | (values[valuesOffset] >>> 36);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 28) | (values[valuesOffset] >>> 23);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 41) | (values[valuesOffset] >>> 10);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 54) | (values[valuesOffset++] << 3) | (values[valuesOffset] >>> 48);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 16) | (values[valuesOffset] >>> 35);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 29) | (values[valuesOffset] >>> 22);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 42) | (values[valuesOffset] >>> 9);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 55) | (values[valuesOffset++] << 4) | (values[valuesOffset] >>> 47);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 17) | (values[valuesOffset] >>> 34);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 30) | (values[valuesOffset] >>> 21);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 43) | (values[valuesOffset] >>> 8);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 56) | (values[valuesOffset++] << 5) | (values[valuesOffset] >>> 46);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 18) | (values[valuesOffset] >>> 33);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 31) | (values[valuesOffset] >>> 20);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 44) | (values[valuesOffset] >>> 7);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 57) | (values[valuesOffset++] << 6) | (values[valuesOffset] >>> 45);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 19) | (values[valuesOffset] >>> 32);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 32) | (values[valuesOffset] >>> 19);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 45) | (values[valuesOffset] >>> 6);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 58) | (values[valuesOffset++] << 7) | (values[valuesOffset] >>> 44);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 20) | (values[valuesOffset] >>> 31);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 33) | (values[valuesOffset] >>> 18);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 46) | (values[valuesOffset] >>> 5);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 59) | (values[valuesOffset++] << 8) | (values[valuesOffset] >>> 43);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 21) | (values[valuesOffset] >>> 30);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 34) | (values[valuesOffset] >>> 17);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 47) | (values[valuesOffset] >>> 4);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 60) | (values[valuesOffset++] << 9) | (values[valuesOffset] >>> 42);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 22) | (values[valuesOffset] >>> 29);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 35) | (values[valuesOffset] >>> 16);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 48) | (values[valuesOffset] >>> 3);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 61) | (values[valuesOffset++] << 10) | (values[valuesOffset] >>> 41);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 23) | (values[valuesOffset] >>> 28);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 36) | (values[valuesOffset] >>> 15);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 49) | (values[valuesOffset] >>> 2);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 62) | (values[valuesOffset++] << 11) | (values[valuesOffset] >>> 40);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 24) | (values[valuesOffset] >>> 27);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 37) | (values[valuesOffset] >>> 14);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 50) | (values[valuesOffset] >>> 1);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 63) | (values[valuesOffset++] << 12) | (values[valuesOffset] >>> 39);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 25) | (values[valuesOffset] >>> 26);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 38) | (values[valuesOffset] >>> 13);
+        blocks[blocksOffset++] = (values[valuesOffset++] << 51) | values[valuesOffset++];
+      }
+    }
+
+}



Mime
View raw message