MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / swap_int64_128

Function swap_int64_128

tensorflow/core/lib/hash/hash.cc:223–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223inline void swap_int64_128(__m128i& input) {
224 constexpr uint8_t mask_data[] = {7, 6, 5, 4, 3, 2, 1, 0,
225 15, 14, 13, 12, 11, 10, 9, 8};
226 const __m128i swapped =
227 _mm_shuffle_epi8(input, _mm_loadu_si128((const __m128i*)mask_data));
228 _mm_storeu_si128(&input, swapped);
229}
230
231inline void Hash64AVX_256_Impl(const char*& data, size_t& n, uint64& h,
232 const uint64& m, const int& r) {

Callers 1

Hash64AVX_128_ImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected