Removed ugly multiplications.
@@ -178,13 +178,14 @@ private void fillBlock(Block X, Block Y, Block currentBlock, boolean withXor)
for (int i = 0; i < 8; i++)
{
+ int i16 = 16 * i;
roundFunction(Z,
- 16 * i, 16 * i + 1, 16 * i + 2,
- 16 * i + 3, 16 * i + 4, 16 * i + 5,
- 16 * i + 6, 16 * i + 7, 16 * i + 8,
- 16 * i + 9, 16 * i + 10, 16 * i + 11,
- 16 * i + 12, 16 * i + 13, 16 * i + 14,
- 16 * i + 15
+ i16, i16 + 1, i16 + 2,
+ i16 + 3, i16 + 4, i16 + 5,
+ i16 + 6, i16 + 7, i16 + 8,
+ i16 + 9, i16 + 10, i16 + 11,
+ i16 + 12, i16 + 13, i16 + 14,
+ i16 + 15
);
}
@@ -193,13 +194,14 @@ private void fillBlock(Block X, Block Y, Block currentBlock, boolean withXor)
for (int i = 0; i < 8; i++)
{
+ int i2 = 2 * i;
roundFunction(Z,
- 2 * i, 2 * i + 1, 2 * i + 16,
- 2 * i + 17, 2 * i + 32, 2 * i + 33,
- 2 * i + 48, 2 * i + 49, 2 * i + 64,
- 2 * i + 65, 2 * i + 80, 2 * i + 81,
- 2 * i + 96, 2 * i + 97, 2 * i + 112,
- 2 * i + 113
+ i2, i2 + 1, i2 + 16,
+ i2 + 17, i2 + 32, i2 + 33,
+ i2 + 48, i2 + 49, i2 + 64,
+ i2 + 65, i2 + 80, i2 + 81,
+ i2 + 96, i2 + 97, i2 + 112,
+ i2 + 113
);
}
