@@ -36,20 +36,6 @@ class LFNBOutputStorage : public OutputStorage<ElementType> {
3636 = sequentialWritePosition % OutputStorage<ElementType>::STORAGE_CAPACITY ;
3737 const uint64_t remappedWritePosition
3838 = remap (writePosition) % OutputStorage<ElementType>::STORAGE_CAPACITY ;
39- const uint64_t nextRemappedWritePosition
40- = remap (writePosition + 1 ) % OutputStorage<ElementType>::STORAGE_CAPACITY ;
41- __builtin_prefetch (
42- &this ->m_storage [nextRemappedWritePosition],
43- PrefetchMode::Write,
44- Locality::High);
45- __builtin_prefetch (
46- &this ->m_writersFinished [nextRemappedWritePosition / BUCKET_SIZE ],
47- PrefetchMode::Write,
48- Locality::High);
49- __builtin_prefetch (
50- &this ->m_readersFinished [nextRemappedWritePosition / BUCKET_SIZE ],
51- PrefetchMode::Write,
52- Locality::High);
5339 BackoffScheme backoffScheme (0 , std::numeric_limits<std::size_t >::max ());
5440 while (m_writersFinished[writePosition / BUCKET_SIZE ].load (std::memory_order_acquire)
5541 / BUCKET_SIZE
@@ -79,21 +65,7 @@ class LFNBOutputStorage : public OutputStorage<ElementType> {
7965 const uint64_t readPosition
8066 = sequentialReadPosition % OutputStorage<ElementType>::STORAGE_CAPACITY ;
8167 const uint64_t remappedReadPosition
82- = remap (sequentialReadPosition) % OutputStorage<ElementType>::STORAGE_CAPACITY ;
83- const uint64_t nextRemappedReadPosition
84- = remap (readPosition + 1 ) % OutputStorage<ElementType>::STORAGE_CAPACITY ;
85- __builtin_prefetch (
86- &this ->m_storage [nextRemappedReadPosition],
87- PrefetchMode::Write,
88- Locality::High);
89- __builtin_prefetch (
90- &this ->m_writersFinished [nextRemappedReadPosition / BUCKET_SIZE ],
91- PrefetchMode::Write,
92- Locality::High);
93- __builtin_prefetch (
94- &this ->m_readersFinished [nextRemappedReadPosition / BUCKET_SIZE ],
95- PrefetchMode::Write,
96- Locality::High);
68+ = remap (readPosition) % OutputStorage<ElementType>::STORAGE_CAPACITY ;
9769 BackoffScheme backoffScheme (0 , std::numeric_limits<std::size_t >::max ());
9870 while ((m_readersFinished[readPosition / BUCKET_SIZE ].load (std::memory_order_acquire)
9971 / (BUCKET_SIZE * 1 )
0 commit comments