MCPcopy Create free account
hub / github.com/bytedance/bolt / swap

Method swap

bolt/exec/prefixsort/PrefixSortAlgorithm.h:192–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191 private:
192 FOLLY_ALWAYS_INLINE void swap(
193 const detail::PrefixSortIterator& lhs,
194 const detail::PrefixSortIterator& rhs) const {
195 simd::memcpy(swapBuffer_, *lhs, entrySize_);
196 simd::memcpy(*lhs, *rhs, entrySize_);
197 simd::memcpy(*rhs, swapBuffer_, entrySize_);
198 }
199
200 FOLLY_ALWAYS_INLINE void rangeSwap(
201 const detail::PrefixSortIterator& start1,

Callers 12

finishArbitrationMethod · 0.80
terminateMethod · 0.80
terminateMethod · 0.80
TEST_FFunction · 0.80
extractMethod · 0.80
TEST_FFunction · 0.80
freeAllMethod · 0.80
abortMethod · 0.80
freeMethod · 0.80
prepareMethod · 0.80

Calls 1

memcpyFunction · 0.85

Tested by 5

TEST_FFunction · 0.64
TEST_FFunction · 0.64
freeAllMethod · 0.64
abortMethod · 0.64
freeMethod · 0.64