diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2026-09-04 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2026-09-04 12:17:40 +0500 |
| commit | 0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17 (patch) | |
| tree | 3a8ca8ef8e855c41476499484ae3f3596e842ac2 /C/BwtSort.c | |
| parent | f9d78aff31a5f2521ae7ddbdc97c4a8855808959 (diff) | |
| download | 7zip-0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17.tar.gz 7zip-0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17.tar.bz2 7zip-0766b733fe3e06dd2a7f9a3cfbf2108ac73abd17.zip | |
Diffstat (limited to 'C/BwtSort.c')
| -rw-r--r-- | C/BwtSort.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/C/BwtSort.c b/C/BwtSort.c index 8f64f9d..c8f9135 100644 --- a/C/BwtSort.c +++ b/C/BwtSort.c | |||
| @@ -564,7 +564,8 @@ UInt32 BlockSort(UInt32 *Indices, const Byte *data, size_t blockSize) | |||
| 564 | const BoolInt finishedGroup = ((Indices[i] & 0x80000000) == 0); | 564 | const BoolInt finishedGroup = ((Indices[i] & 0x80000000) == 0); |
| 565 | if (Indices[i] & 0x40000000) | 565 | if (Indices[i] & 0x40000000) |
| 566 | { | 566 | { |
| 567 | groupSize += ((Indices[(size_t)i + 1] >> kNumBitsMax) << kNumExtra0Bits); | 567 | const UInt32 temp = ((Indices[(size_t)i + 1] >> kNumBitsMax) << kNumExtra0Bits); |
| 568 | groupSize += temp; | ||
| 568 | Indices[(size_t)i + 1] &= kIndexMask; | 569 | Indices[(size_t)i + 1] &= kIndexMask; |
| 569 | } | 570 | } |
| 570 | Indices[i] &= kIndexMask; | 571 | Indices[i] &= kIndexMask; |
| @@ -616,7 +617,8 @@ UInt32 BlockSort(UInt32 *Indices, const Byte *data, size_t blockSize) | |||
| 616 | size_t groupSize = (Indices[i] & ~0xC0000000) >> kNumBitsMax; | 617 | size_t groupSize = (Indices[i] & ~0xC0000000) >> kNumBitsMax; |
| 617 | if (Indices[i] & 0x40000000) | 618 | if (Indices[i] & 0x40000000) |
| 618 | { | 619 | { |
| 619 | groupSize += (Indices[(size_t)i + 1] >> kNumBitsMax) << kNumExtra0Bits; | 620 | const UInt32 temp = (Indices[(size_t)i + 1] >> kNumBitsMax) << kNumExtra0Bits; |
| 621 | groupSize += temp; | ||
| 620 | Indices[(size_t)i + 1] &= kIndexMask; | 622 | Indices[(size_t)i + 1] &= kIndexMask; |
| 621 | } | 623 | } |
| 622 | Indices[i] &= kIndexMask; | 624 | Indices[i] &= kIndexMask; |
