Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Nov 8, 2024
1 parent 24706ab commit a13d876
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/PreSieve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ void PreSieve::preSieve(Vector<uint8_t>& sieve, uint64_t segmentLow)
bytesToCopy = std::min(left, bytesToCopy);
}

andBuffers(buffers[0].begin() + pos[0],
buffers[1].begin() + pos[1],
buffers[2].begin() + pos[2],
buffers[3].begin() + pos[3],
buffers[4].begin() + pos[4],
buffers[5].begin() + pos[5],
buffers[6].begin() + pos[6],
buffers[7].begin() + pos[7],
andBuffers(&*(buffers[0].begin() + pos[0]), // &buffer[0][pos[0]]
&*(buffers[1].begin() + pos[1]), // &buffer[1][pos[1]]
&*(buffers[2].begin() + pos[2]), // &buffer[2][pos[2]]
&*(buffers[3].begin() + pos[3]), // &buffer[3][pos[3]]
&*(buffers[4].begin() + pos[4]), // &buffer[4][pos[4]]
&*(buffers[5].begin() + pos[5]), // &buffer[5][pos[5]]
&*(buffers[6].begin() + pos[6]), // &buffer[6][pos[6]]
&*(buffers[7].begin() + pos[7]), // &buffer[7][pos[7]]
&sieve[offset],
bytesToCopy);

Expand Down

0 comments on commit a13d876

Please sign in to comment.