Skip to content

Commit

Permalink
Remove space in cast formatting, #1008
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Dec 17, 2024
1 parent 5809995 commit 56c14ed
Show file tree
Hide file tree
Showing 25 changed files with 910 additions and 910 deletions.
2 changes: 1 addition & 1 deletion src/Lucene.Net/Util/Packed/BulkOperationPacked1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public override void Decode(long[] blocks, int blocksOffset, int[] values, int v
long block = blocks[blocksOffset++];
for (int shift = 63; shift >= 0; shift -= 1)
{
values[valuesOffset++] = (int) ((block >>> shift) & 1);
values[valuesOffset++] = (int)((block >>> shift) & 1);
}
}
}
Expand Down
64 changes: 32 additions & 32 deletions src/Lucene.Net/Util/Packed/BulkOperationPacked10.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,42 +34,42 @@ public override void Decode(long[] blocks, int blocksOffset, int[] values, int v
for (int i = 0; i < iterations; ++i)
{
long block0 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (block0 >>> 54);
values[valuesOffset++] = (int) ((block0 >>> 44) & 1023L);
values[valuesOffset++] = (int) ((block0 >>> 34) & 1023L);
values[valuesOffset++] = (int) ((block0 >>> 24) & 1023L);
values[valuesOffset++] = (int) ((block0 >>> 14) & 1023L);
values[valuesOffset++] = (int) ((block0 >>> 4) & 1023L);
values[valuesOffset++] = (int)(block0 >>> 54);
values[valuesOffset++] = (int)((block0 >>> 44) & 1023L);
values[valuesOffset++] = (int)((block0 >>> 34) & 1023L);
values[valuesOffset++] = (int)((block0 >>> 24) & 1023L);
values[valuesOffset++] = (int)((block0 >>> 14) & 1023L);
values[valuesOffset++] = (int)((block0 >>> 4) & 1023L);
long block1 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block0 & 15L) << 6) | (block1 >>> 58));
values[valuesOffset++] = (int) ((block1 >>> 48) & 1023L);
values[valuesOffset++] = (int) ((block1 >>> 38) & 1023L);
values[valuesOffset++] = (int) ((block1 >>> 28) & 1023L);
values[valuesOffset++] = (int) ((block1 >>> 18) & 1023L);
values[valuesOffset++] = (int) ((block1 >>> 8) & 1023L);
values[valuesOffset++] = (int)(((block0 & 15L) << 6) | (block1 >>> 58));
values[valuesOffset++] = (int)((block1 >>> 48) & 1023L);
values[valuesOffset++] = (int)((block1 >>> 38) & 1023L);
values[valuesOffset++] = (int)((block1 >>> 28) & 1023L);
values[valuesOffset++] = (int)((block1 >>> 18) & 1023L);
values[valuesOffset++] = (int)((block1 >>> 8) & 1023L);
long block2 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block1 & 255L) << 2) | (block2 >>> 62));
values[valuesOffset++] = (int) ((block2 >>> 52) & 1023L);
values[valuesOffset++] = (int) ((block2 >>> 42) & 1023L);
values[valuesOffset++] = (int) ((block2 >>> 32) & 1023L);
values[valuesOffset++] = (int) ((block2 >>> 22) & 1023L);
values[valuesOffset++] = (int) ((block2 >>> 12) & 1023L);
values[valuesOffset++] = (int) ((block2 >>> 2) & 1023L);
values[valuesOffset++] = (int)(((block1 & 255L) << 2) | (block2 >>> 62));
values[valuesOffset++] = (int)((block2 >>> 52) & 1023L);
values[valuesOffset++] = (int)((block2 >>> 42) & 1023L);
values[valuesOffset++] = (int)((block2 >>> 32) & 1023L);
values[valuesOffset++] = (int)((block2 >>> 22) & 1023L);
values[valuesOffset++] = (int)((block2 >>> 12) & 1023L);
values[valuesOffset++] = (int)((block2 >>> 2) & 1023L);
long block3 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block2 & 3L) << 8) | (block3 >>> 56));
values[valuesOffset++] = (int) ((block3 >>> 46) & 1023L);
values[valuesOffset++] = (int) ((block3 >>> 36) & 1023L);
values[valuesOffset++] = (int) ((block3 >>> 26) & 1023L);
values[valuesOffset++] = (int) ((block3 >>> 16) & 1023L);
values[valuesOffset++] = (int) ((block3 >>> 6) & 1023L);
values[valuesOffset++] = (int)(((block2 & 3L) << 8) | (block3 >>> 56));
values[valuesOffset++] = (int)((block3 >>> 46) & 1023L);
values[valuesOffset++] = (int)((block3 >>> 36) & 1023L);
values[valuesOffset++] = (int)((block3 >>> 26) & 1023L);
values[valuesOffset++] = (int)((block3 >>> 16) & 1023L);
values[valuesOffset++] = (int)((block3 >>> 6) & 1023L);
long block4 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block3 & 63L) << 4) | (block4 >>> 60));
values[valuesOffset++] = (int) ((block4 >>> 50) & 1023L);
values[valuesOffset++] = (int) ((block4 >>> 40) & 1023L);
values[valuesOffset++] = (int) ((block4 >>> 30) & 1023L);
values[valuesOffset++] = (int) ((block4 >>> 20) & 1023L);
values[valuesOffset++] = (int) ((block4 >>> 10) & 1023L);
values[valuesOffset++] = (int) (block4 & 1023L);
values[valuesOffset++] = (int)(((block3 & 63L) << 4) | (block4 >>> 60));
values[valuesOffset++] = (int)((block4 >>> 50) & 1023L);
values[valuesOffset++] = (int)((block4 >>> 40) & 1023L);
values[valuesOffset++] = (int)((block4 >>> 30) & 1023L);
values[valuesOffset++] = (int)((block4 >>> 20) & 1023L);
values[valuesOffset++] = (int)((block4 >>> 10) & 1023L);
values[valuesOffset++] = (int)(block4 & 1023L);
}
}

Expand Down
128 changes: 64 additions & 64 deletions src/Lucene.Net/Util/Packed/BulkOperationPacked11.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,80 +34,80 @@ public override void Decode(long[] blocks, int blocksOffset, int[] values, int v
for (int i = 0; i < iterations; ++i)
{
long block0 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (block0 >>> 53);
values[valuesOffset++] = (int) ((block0 >>> 42) & 2047L);
values[valuesOffset++] = (int) ((block0 >>> 31) & 2047L);
values[valuesOffset++] = (int) ((block0 >>> 20) & 2047L);
values[valuesOffset++] = (int) ((block0 >>> 9) & 2047L);
values[valuesOffset++] = (int)(block0 >>> 53);
values[valuesOffset++] = (int)((block0 >>> 42) & 2047L);
values[valuesOffset++] = (int)((block0 >>> 31) & 2047L);
values[valuesOffset++] = (int)((block0 >>> 20) & 2047L);
values[valuesOffset++] = (int)((block0 >>> 9) & 2047L);
long block1 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block0 & 511L) << 2) | (block1 >>> 62));
values[valuesOffset++] = (int) ((block1 >>> 51) & 2047L);
values[valuesOffset++] = (int) ((block1 >>> 40) & 2047L);
values[valuesOffset++] = (int) ((block1 >>> 29) & 2047L);
values[valuesOffset++] = (int) ((block1 >>> 18) & 2047L);
values[valuesOffset++] = (int) ((block1 >>> 7) & 2047L);
values[valuesOffset++] = (int)(((block0 & 511L) << 2) | (block1 >>> 62));
values[valuesOffset++] = (int)((block1 >>> 51) & 2047L);
values[valuesOffset++] = (int)((block1 >>> 40) & 2047L);
values[valuesOffset++] = (int)((block1 >>> 29) & 2047L);
values[valuesOffset++] = (int)((block1 >>> 18) & 2047L);
values[valuesOffset++] = (int)((block1 >>> 7) & 2047L);
long block2 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block1 & 127L) << 4) | (block2 >>> 60));
values[valuesOffset++] = (int) ((block2 >>> 49) & 2047L);
values[valuesOffset++] = (int) ((block2 >>> 38) & 2047L);
values[valuesOffset++] = (int) ((block2 >>> 27) & 2047L);
values[valuesOffset++] = (int) ((block2 >>> 16) & 2047L);
values[valuesOffset++] = (int) ((block2 >>> 5) & 2047L);
values[valuesOffset++] = (int)(((block1 & 127L) << 4) | (block2 >>> 60));
values[valuesOffset++] = (int)((block2 >>> 49) & 2047L);
values[valuesOffset++] = (int)((block2 >>> 38) & 2047L);
values[valuesOffset++] = (int)((block2 >>> 27) & 2047L);
values[valuesOffset++] = (int)((block2 >>> 16) & 2047L);
values[valuesOffset++] = (int)((block2 >>> 5) & 2047L);
long block3 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block2 & 31L) << 6) | (block3 >>> 58));
values[valuesOffset++] = (int) ((block3 >>> 47) & 2047L);
values[valuesOffset++] = (int) ((block3 >>> 36) & 2047L);
values[valuesOffset++] = (int) ((block3 >>> 25) & 2047L);
values[valuesOffset++] = (int) ((block3 >>> 14) & 2047L);
values[valuesOffset++] = (int) ((block3 >>> 3) & 2047L);
values[valuesOffset++] = (int)(((block2 & 31L) << 6) | (block3 >>> 58));
values[valuesOffset++] = (int)((block3 >>> 47) & 2047L);
values[valuesOffset++] = (int)((block3 >>> 36) & 2047L);
values[valuesOffset++] = (int)((block3 >>> 25) & 2047L);
values[valuesOffset++] = (int)((block3 >>> 14) & 2047L);
values[valuesOffset++] = (int)((block3 >>> 3) & 2047L);
long block4 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block3 & 7L) << 8) | (block4 >>> 56));
values[valuesOffset++] = (int) ((block4 >>> 45) & 2047L);
values[valuesOffset++] = (int) ((block4 >>> 34) & 2047L);
values[valuesOffset++] = (int) ((block4 >>> 23) & 2047L);
values[valuesOffset++] = (int) ((block4 >>> 12) & 2047L);
values[valuesOffset++] = (int) ((block4 >>> 1) & 2047L);
values[valuesOffset++] = (int)(((block3 & 7L) << 8) | (block4 >>> 56));
values[valuesOffset++] = (int)((block4 >>> 45) & 2047L);
values[valuesOffset++] = (int)((block4 >>> 34) & 2047L);
values[valuesOffset++] = (int)((block4 >>> 23) & 2047L);
values[valuesOffset++] = (int)((block4 >>> 12) & 2047L);
values[valuesOffset++] = (int)((block4 >>> 1) & 2047L);
long block5 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block4 & 1L) << 10) | (block5 >>> 54));
values[valuesOffset++] = (int) ((block5 >>> 43) & 2047L);
values[valuesOffset++] = (int) ((block5 >>> 32) & 2047L);
values[valuesOffset++] = (int) ((block5 >>> 21) & 2047L);
values[valuesOffset++] = (int) ((block5 >>> 10) & 2047L);
values[valuesOffset++] = (int)(((block4 & 1L) << 10) | (block5 >>> 54));
values[valuesOffset++] = (int)((block5 >>> 43) & 2047L);
values[valuesOffset++] = (int)((block5 >>> 32) & 2047L);
values[valuesOffset++] = (int)((block5 >>> 21) & 2047L);
values[valuesOffset++] = (int)((block5 >>> 10) & 2047L);
long block6 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block5 & 1023L) << 1) | (block6 >>> 63));
values[valuesOffset++] = (int) ((block6 >>> 52) & 2047L);
values[valuesOffset++] = (int) ((block6 >>> 41) & 2047L);
values[valuesOffset++] = (int) ((block6 >>> 30) & 2047L);
values[valuesOffset++] = (int) ((block6 >>> 19) & 2047L);
values[valuesOffset++] = (int) ((block6 >>> 8) & 2047L);
values[valuesOffset++] = (int)(((block5 & 1023L) << 1) | (block6 >>> 63));
values[valuesOffset++] = (int)((block6 >>> 52) & 2047L);
values[valuesOffset++] = (int)((block6 >>> 41) & 2047L);
values[valuesOffset++] = (int)((block6 >>> 30) & 2047L);
values[valuesOffset++] = (int)((block6 >>> 19) & 2047L);
values[valuesOffset++] = (int)((block6 >>> 8) & 2047L);
long block7 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block6 & 255L) << 3) | (block7 >>> 61));
values[valuesOffset++] = (int) ((block7 >>> 50) & 2047L);
values[valuesOffset++] = (int) ((block7 >>> 39) & 2047L);
values[valuesOffset++] = (int) ((block7 >>> 28) & 2047L);
values[valuesOffset++] = (int) ((block7 >>> 17) & 2047L);
values[valuesOffset++] = (int) ((block7 >>> 6) & 2047L);
values[valuesOffset++] = (int)(((block6 & 255L) << 3) | (block7 >>> 61));
values[valuesOffset++] = (int)((block7 >>> 50) & 2047L);
values[valuesOffset++] = (int)((block7 >>> 39) & 2047L);
values[valuesOffset++] = (int)((block7 >>> 28) & 2047L);
values[valuesOffset++] = (int)((block7 >>> 17) & 2047L);
values[valuesOffset++] = (int)((block7 >>> 6) & 2047L);
long block8 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block7 & 63L) << 5) | (block8 >>> 59));
values[valuesOffset++] = (int) ((block8 >>> 48) & 2047L);
values[valuesOffset++] = (int) ((block8 >>> 37) & 2047L);
values[valuesOffset++] = (int) ((block8 >>> 26) & 2047L);
values[valuesOffset++] = (int) ((block8 >>> 15) & 2047L);
values[valuesOffset++] = (int) ((block8 >>> 4) & 2047L);
values[valuesOffset++] = (int)(((block7 & 63L) << 5) | (block8 >>> 59));
values[valuesOffset++] = (int)((block8 >>> 48) & 2047L);
values[valuesOffset++] = (int)((block8 >>> 37) & 2047L);
values[valuesOffset++] = (int)((block8 >>> 26) & 2047L);
values[valuesOffset++] = (int)((block8 >>> 15) & 2047L);
values[valuesOffset++] = (int)((block8 >>> 4) & 2047L);
long block9 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block8 & 15L) << 7) | (block9 >>> 57));
values[valuesOffset++] = (int) ((block9 >>> 46) & 2047L);
values[valuesOffset++] = (int) ((block9 >>> 35) & 2047L);
values[valuesOffset++] = (int) ((block9 >>> 24) & 2047L);
values[valuesOffset++] = (int) ((block9 >>> 13) & 2047L);
values[valuesOffset++] = (int) ((block9 >>> 2) & 2047L);
values[valuesOffset++] = (int)(((block8 & 15L) << 7) | (block9 >>> 57));
values[valuesOffset++] = (int)((block9 >>> 46) & 2047L);
values[valuesOffset++] = (int)((block9 >>> 35) & 2047L);
values[valuesOffset++] = (int)((block9 >>> 24) & 2047L);
values[valuesOffset++] = (int)((block9 >>> 13) & 2047L);
values[valuesOffset++] = (int)((block9 >>> 2) & 2047L);
long block10 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block9 & 3L) << 9) | (block10 >>> 55));
values[valuesOffset++] = (int) ((block10 >>> 44) & 2047L);
values[valuesOffset++] = (int) ((block10 >>> 33) & 2047L);
values[valuesOffset++] = (int) ((block10 >>> 22) & 2047L);
values[valuesOffset++] = (int) ((block10 >>> 11) & 2047L);
values[valuesOffset++] = (int) (block10 & 2047L);
values[valuesOffset++] = (int)(((block9 & 3L) << 9) | (block10 >>> 55));
values[valuesOffset++] = (int)((block10 >>> 44) & 2047L);
values[valuesOffset++] = (int)((block10 >>> 33) & 2047L);
values[valuesOffset++] = (int)((block10 >>> 22) & 2047L);
values[valuesOffset++] = (int)((block10 >>> 11) & 2047L);
values[valuesOffset++] = (int)(block10 & 2047L);
}
}

Expand Down
32 changes: 16 additions & 16 deletions src/Lucene.Net/Util/Packed/BulkOperationPacked12.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,24 @@ public override void Decode(long[] blocks, int blocksOffset, int[] values, int v
for (int i = 0; i < iterations; ++i)
{
long block0 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (block0 >>> 52);
values[valuesOffset++] = (int) ((block0 >>> 40) & 4095L);
values[valuesOffset++] = (int) ((block0 >>> 28) & 4095L);
values[valuesOffset++] = (int) ((block0 >>> 16) & 4095L);
values[valuesOffset++] = (int) ((block0 >>> 4) & 4095L);
values[valuesOffset++] = (int)(block0 >>> 52);
values[valuesOffset++] = (int)((block0 >>> 40) & 4095L);
values[valuesOffset++] = (int)((block0 >>> 28) & 4095L);
values[valuesOffset++] = (int)((block0 >>> 16) & 4095L);
values[valuesOffset++] = (int)((block0 >>> 4) & 4095L);
long block1 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block0 & 15L) << 8) | (block1 >>> 56));
values[valuesOffset++] = (int) ((block1 >>> 44) & 4095L);
values[valuesOffset++] = (int) ((block1 >>> 32) & 4095L);
values[valuesOffset++] = (int) ((block1 >>> 20) & 4095L);
values[valuesOffset++] = (int) ((block1 >>> 8) & 4095L);
values[valuesOffset++] = (int)(((block0 & 15L) << 8) | (block1 >>> 56));
values[valuesOffset++] = (int)((block1 >>> 44) & 4095L);
values[valuesOffset++] = (int)((block1 >>> 32) & 4095L);
values[valuesOffset++] = (int)((block1 >>> 20) & 4095L);
values[valuesOffset++] = (int)((block1 >>> 8) & 4095L);
long block2 = blocks[blocksOffset++];
values[valuesOffset++] = (int) (((block1 & 255L) << 4) | (block2 >>> 60));
values[valuesOffset++] = (int) ((block2 >>> 48) & 4095L);
values[valuesOffset++] = (int) ((block2 >>> 36) & 4095L);
values[valuesOffset++] = (int) ((block2 >>> 24) & 4095L);
values[valuesOffset++] = (int) ((block2 >>> 12) & 4095L);
values[valuesOffset++] = (int) (block2 & 4095L);
values[valuesOffset++] = (int)(((block1 & 255L) << 4) | (block2 >>> 60));
values[valuesOffset++] = (int)((block2 >>> 48) & 4095L);
values[valuesOffset++] = (int)((block2 >>> 36) & 4095L);
values[valuesOffset++] = (int)((block2 >>> 24) & 4095L);
values[valuesOffset++] = (int)((block2 >>> 12) & 4095L);
values[valuesOffset++] = (int)(block2 & 4095L);
}
}

Expand Down
Loading

0 comments on commit 56c14ed

Please sign in to comment.